description: Run or maintain an end-to-end YG-Rules local pipeline from a fixed input folder to generated Excel and Markdown outputs. Use when files are placed in a directory and Codex should collect domains, schema, and guidance files, run the existing parser/storage/analysis/rule-generation code directly without Flask, and produce output/rules-{task_id}/ artifacts.
---
# YG-Rules Pipeline
## Overview
Use this skill when the user wants a folder-driven local run: collect files from an input directory, populate the project intermediate state, analyze guidance files, and generate Excel plus Markdown outputs.
Do not call Flask routes for this workflow. Run the bundled script, which imports the project code directly.
## Input Folder Contract
Default layout:
```text
input/
domains.xlsx # or domains.csv / domains.json
schema.xlsx # or schema.xls
guidance/
过度负债/
policy.md
policy.docx
无关多元/
policy.pdf
_all/
common-policy.md
```
Rules:
-`domains.*` is required and must parse through `app.utils.parser.parse_upload_file`.
-`schema.*` is recommended and must be `.xlsx` or `.xls`.
-`guidance/<domain name>/` files attach only to the matching domain.