一键导入
flow-init
Initialize AI SDLC framework with intelligent project analysis and documentation generation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Initialize AI SDLC framework with intelligent project analysis and documentation generation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Unified orchestrator for all development tasks. ALWAYS execute when invoked — never skip for 'straightforward' tasks. Phases adapt based on detected task characteristics rather than predetermined types. Use for any development work that modifies code.
Internal engine for managing project documentation and technical standards in .agyflow/docs/. Handles file operations, INDEX.md generation, and AGENTS.md integration. Invoked by flow-init, standards-update, and standards-discover skills.
Orchestrates the complete migration workflow from current state analysis through implementation to compatibility verification. Handles technology migrations, platform changes, and architecture pattern transitions with adaptive risk assessment, incremental execution, and rollback planning. Use when migrating technologies, platforms, or architecture patterns.
Orchestrates performance optimization workflows using static code analysis to identify bottlenecks (N+1 queries, missing indexes, O(n^2) algorithms, blocking I/O, memory leaks). Accepts optional user-provided profiling data. Reuses standard specification, planning, implementation, and verification phases.
Interactive product/feature design orchestrator. Transforms fuzzy ideas into structured product briefs through collaborative exploration, iterative refinement, and visual prototyping. Adaptive phases detect design complexity and adjust depth.
Quick bug fix with TDD red/green gates and complexity escalation
| name | flow-init |
| description | Initialize AI SDLC framework with intelligent project analysis and documentation generation |
| argument-hint | ["--standards-from=PATH"] |
| user-invocable | true |
Initialize .agyflow/docs/ with intelligent project analysis and meaningful documentation generation based on actual codebase inspection.
NOTE: This skill invokes other skills and subagents at specific phases. Use the Task tool with docs-operator subagent (subagent_type: docs-operator) for all docs-manager operations, and Task tool for project-analyzer. Use the Skill tool only for standards-discover (Phase 8, last phase). The Task tool returns control to this skill after completion; the Skill tool does not.
| Phase | Subject | activeForm |
|---|---|---|
| 1 | Pre-flight checks | Running pre-flight checks |
| 2 | Analyze project codebase | Analyzing project codebase |
| 3 | Present findings & gather context | Gathering project context |
| 4 | Select standards to initialize | Selecting standards |
| 5 | Initialize documentation structure | Initializing documentation |
| 6 | Generate project documentation | Generating project documentation |
| 7 | Validate | Validating initialization |
| 8 | Discover coding standards | Discovering coding standards |
Task Tracking: Before Phase 1, initialize a task checklist (task.md) for all phases using write_to_file (with metadata IsArtifact: true and ArtifactMetadata.ArtifactType: "task"). At each phase: update the checklist item from pending [ ] to in-progress [/] → execute → update to completed [x] using replace_file_content or multi_replace_file_content. If skipped (e.g., user selects "Update existing"), mark skipped phases as completed [x] in the checklist with a skipped note.
If --standards-from=PATH is provided:
PATH/.agyflow/docs/standards/ exists. If not, inform the user and stop — the specified project doesn't have agyflow standards initialized.Check if .agyflow/ directory already exists.
If exists, use question:
.agyflow.backup-$(date +%Y%m%d-%H%M%S)/ using Bash toolInvoke project-analyzer subagent via the Task tool.
Wait for completion. Store analysis results for use in Phases 3 and 6.
Step 1: Present analysis results to the user (project type, primary language/framework, architecture, tech stack, conventions, strengths/opportunities).
Step 2: Use question to confirm analysis accuracy. If corrections needed, collect them.
Step 3: Gather additional context via question (adapt to project type):
Step 4: Ask which project documentation to generate using question (multi-select):
Smart defaults based on projectArchitectureType:
Store selections for Phase 6.
Before presenting options, explain to the user:
--standards-from was provided, standards come from the referenced project. Otherwise, the plugin includes generic built-in standards. Either way, they serve as a starting point and can be fully customized or extended later.Determine available categories:
--standards-from was provided: Scan PATH/.agyflow/docs/standards/*/ to discover all available categories from the external project (may include custom categories beyond the baseline global/frontend/backend/testing).Calculate smart defaults based on analysis:
Also scan .agyflow/docs/standards/*/ for any existing custom categories to include.
Show smart defaults summary (noting the source: external project or built-in), then use question:
Custom categories: if user adds a new category, create the directory and include it in the selection.
Store selection for Phase 5.
Invoke docs-operator subagent via Task tool (subagent_type: docs-operator) with prompt:
"Initialize documentation structure. Standards selection: [array from Phase 4]. [If --standards-from was provided: Standards source path: [resolved path]/.agyflow/docs/standards/. Copy standards from this external path instead of built-in defaults.] Only copy selected standard categories. Do NOT copy project templates — only create the project/ directory. Project documentation will be generated in Phase 6 with real content from project analysis. Create placeholder sections in INDEX.md for skipped categories."
Wait for docs-operator to complete, then immediately proceed to Phase 6.
IMPORTANT: Only generate docs selected in Phase 3.
For each selected doc type, read the corresponding reference template:
references/vision-templates.md, select template by project type (new/existing/legacy)references/roadmap-templates.md, select template by project typereferences/tech-stack-template.mdreferences/architecture-template.mdFill templates using:
Write each file to .agyflow/docs/project/.
Diagram refinement (content-preserving, do NOT replace prose):
If Architecture doc is selected and .agyflow/docs/project/architecture.md exists:
diagrams-mermaid## Visual Architecture Context (prefer C4Context or C4Container)## Component Communication Flow (prefer sequenceDiagram or flowchart)If Tech Stack doc is selected and .agyflow/docs/project/tech-stack.md exists:
diagrams-mermaidStep 1: Invoke docs-operator subagent via Task tool (subagent_type: docs-operator) with prompt:
"Regenerate INDEX.md to include all newly created project documentation. Then verify AGENTS.md is properly integrated with .agyflow/docs/ documentation."
Wait for docs-operator to complete, then immediately continue with Step 2.
Step 2: Run validation checks:
Step 3: Display comprehensive summary:
/agyflow:workInvoke the standards-discover skill via Skill tool with --scope=full to automatically discover coding standards from the project's config files, source code patterns, documentation, and external sources.
"Run standards discovery with --scope=full. This is being invoked as part of project initialization."
The standards-discover skill handles its own user interaction (presenting findings by confidence tier, asking for approval). Let it run its full workflow — this is the last phase of init, so context handoff is fine here.
After completion, display a brief summary of how many standards were discovered and applied.
.agyflow/docs/ creation fails: check permissions, suggest manual creation