Agent Skills
› ai-shifu/ai-shifu
› shifu-authoring-flow
shifu-authoring-flow
GitHub用于规范后端 Shifu 内容创作流程的修改,涵盖草稿、发布、历史及导入导出行为。确保状态分离、结构变更通过辅助模块处理,并同步更新权限与测试,保障大纲完整性。
Trigger Scenarios
修改后端 Shifu 创作逻辑
调整草稿或发布流程
变更大纲结构或导入导出功能
Install
npx skills add ai-shifu/ai-shifu --skill shifu-authoring-flow -g -y
SKILL.md
Frontmatter
{
"name": "shifu-authoring-flow",
"description": "Use when changing backend shifu authoring, draft history, publish, outline structure, or import\/export behavior. Keep draft and publish flows consistent and protect outline integrity."
}
Shifu Authoring Flow
Core Rules
- Preserve the separation between draft state, publish state, and history logs.
- Route structural changes through the dedicated shifu helper modules instead of mutating trees directly in routes.
- Keep import/export payload changes synchronized with validation, permissions, and history behavior.
Workflow
- Start from
route.py,funcs.py, and the relevantshifu_*helper module. - Identify whether the change affects draft state, publish state, or both.
- Update permissions, structural validation, and import/export behavior together when the payload contract moves.
- Add or update tests under
src/api/tests/service/shifu/.
Regression Checklist
- Draft save and reload.
- Publish path.
- Import/export if payload shape changed.
- Permission failure path.
Version History
- e65aa77 Current 2026-08-20 15:13


