Agent Skillsai-shifu/ai-shifu › shifu-authoring-flow

shifu-authoring-flow

GitHub

用于规范后端 Shifu 内容创作流程的修改,涵盖草稿、发布、历史及导入导出行为。确保状态分离、结构变更通过辅助模块处理,并同步更新权限与测试,保障大纲完整性。

src/api/skills/shifu-authoring-flow/SKILL.md ai-shifu/ai-shifu

Trigger Scenarios

修改后端 Shifu 创作逻辑 调整草稿或发布流程 变更大纲结构或导入导出功能

Install

npx skills add ai-shifu/ai-shifu --skill shifu-authoring-flow -g -y
More Options

Non-standard path

npx skills add https://github.com/ai-shifu/ai-shifu/tree/main/src/api/skills/shifu-authoring-flow -g -y

Use without installing

npx skills use ai-shifu/ai-shifu@shifu-authoring-flow

指定 Agent (Claude Code)

npx skills add ai-shifu/ai-shifu --skill shifu-authoring-flow -a claude-code -g -y

安装 repo 全部 skill

npx skills add ai-shifu/ai-shifu --all -g -y

预览 repo 内 skill

npx skills add ai-shifu/ai-shifu --list

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

  1. Start from route.py, funcs.py, and the relevant shifu_* helper module.
  2. Identify whether the change affects draft state, publish state, or both.
  3. Update permissions, structural validation, and import/export behavior together when the payload contract moves.
  4. 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

Same Skill Collection

src/api/skills/user-auth-flows/SKILL.md
src/cook-web/skills/app-error-boundary-display/SKILL.md
src/cook-web/skills/async-confirm-dialog-loading/SKILL.md
src/cook-web/skills/chat-actionbar-ask-placement/SKILL.md
src/cook-web/skills/chat-element-streaming/SKILL.md
src/cook-web/skills/chat-layout-width-detection/SKILL.md
src/cook-web/skills/deep-link-lessonid-routing/SKILL.md
src/cook-web/skills/fullscreen-dialog-portal/SKILL.md
src/cook-web/skills/interaction-user-input-defaults/SKILL.md
src/cook-web/skills/listen-mode-audio-streaming/SKILL.md
src/cook-web/skills/listen-mode-slide-mobile-integration/SKILL.md
src/cook-web/skills/markdownflow-controlled-sync/SKILL.md
src/cook-web/skills/module-augmentation-guardrails/SKILL.md
src/cook-web/skills/next-build-node-runtime/SKILL.md
src/cook-web/skills/shared-loading-dots/SKILL.md
src/cook-web/skills/hook-contract-refactor-safety/SKILL.md

Metadata

Files
0
Version
e65aa77
Hash
3141f2e2
Indexed
2026-08-20 15:13

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 08:47
浙ICP备14020137号-1 $방문자$