OpenParable
Skip to content
← Back to skills

Shifu Authoring Flow

Agent Building
shifu-authoring-flow

Shifu Authoring Flow is an Agent Skill for agent building published in the ai-shifu/ai-shifu repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/ai-shifu/ai-shifu/blob/HEAD/src/api/skills/shifu-authoring-flow/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/shifu-authoring-flow, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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.