963 B
963 B
YG-Rules Pipeline Skill
Use this skill when files are placed in a fixed folder and the user wants final Excel and Markdown outputs.
Do not call Flask. Run the Python pipeline directly from the repository root:
python skill\yg-rules-pipeline\scripts\run_pipeline.py --input input --limit 2 --create-sql
Input folder:
input/
domains.xlsx # or domains.csv / domains.json
schema.xlsx # or schema.xls
guidance/
<风险领域名>/
policy.md
_all/
common-policy.md
The script directly calls project code:
parse_upload_file
DomainStorage.save_domains
SchemaStorage.save
DomainStorage.save_guidance_file
DomainStorage.analyze_guidance
RuleGenerationService.start
RuleGenerationService.get_status
Outputs:
output/rules-{task_id}/rules-{task_id}.xlsx
output/rules-{task_id}/rules-{task_id}.md
If the script fails, report the exact error and the input folder checked.