Loading...
Loading...
Documentation-driven project development workflow. Intelligently determines task types, executes existing plans or generates new plans using feature-dev. **Use Cases:** - Complete project documentation exists, need to execute development tasks - User specifies to execute a certain plan (e.g., "Execute plan 001") - User requests to develop new features (automatically uses feature-dev to generate plans) **Prerequisites:** - The project should already have a docs/ documentation structure (PRD, SAD, etc.) - For new projects, it is recommended to first use the project-docs-setup skill to create complete documentation - If plan formulation is needed, it is recommended to use the project-planning skill **Relationship with Other Skills:** - project-docs-setup: Creates project documentation structure - project-planning: Formulates development plans (requirement clarification + design discussion + plan writing) - project-workflow: Executes development plans + updates documentation - Recommended workflow: project-docs-setup → project-planning → project-workflow **Trigger Methods:** - "Execute plan 001" / "Continue 001-user-authentication" - "Start development" / "Execute plan" / "Continue last task"
npx skill4agent add zhucl1006/skills project-workflowProject Initialization: project-docs-setup (Create documentation)
↓
Plan Formulation: project-planning (Requirement clarification + Design + Plan)
↓
Development Execution: project-workflow (Execute plan + Update documentation)Use the project-docs-setup skill:
/project-docs-setup
or tell me: "Create project documentation"
This skill will:
- Understand project requirements through multi-round conversations
- Provide professional product and architecture analysis
- Generate complete documentation such as PRD, SAD, development guides, etc.Call using Task tool:
subagent_type="general-purpose"
description="Code review for recent changes"
prompt="Detailed code review prompt..."0. Initialize documentation structure → 1. Read documentation → 2. Determine task type
├─ Specified plan → 3. Execute existing plan → Code review → Fix and optimize → 4. Update documentation
└─ No plan → Prompt to use project-planning to create a plan# Check required directories and files
- docs/README.md # Documentation index (required)
- docs/plans/ # Plan file directory
- docs/specs/ # Specification documents1. Display detection results:
"Detected missing project documentation structure"
2. Provide suggestions:
"It is recommended to use the project-docs-setup skill to create complete project documentation:
- This skill will understand project requirements through multi-round conversations
- Automatically generate complete documents such as PRD, SAD, development guides, etc.
- Provide best practice suggestions and architecture analysis
Execution methods:
/project-docs-setup
or
Tell me: 'Create project documentation'"
3. Ask for user's choice:
"How would you like to handle this?
a) Create complete documentation first (recommended) - I can help you call project-docs-setup
b) Create minimal structure to continue - Only create empty directories, no documentation content
c) Skip check and continue execution - Assume documentation is in another location"
4. Based on user's choice:
- Choose a: Call project-docs-setup skill or prompt user to run it
- Choose b: Execute 0.3 to create minimal structure
- Choose c: Skip Phase 0 and enter Phase 1# Only create directory structure, no files will be created
mkdir -p docs/plans
mkdir -p docs/specs
mkdir -p docs/guides
mkdir -p docs/modules
mkdir -p docs/database
mkdir -p docs/api
echo "Basic directory structure created."
echo "Note: Directories are empty, it is recommended to use project-docs-setup to supplement complete documentation later."✓ Detected complete documentation structure
✓ Directly enter Phase 11. Read docs/README.md to get documentation index
2. Read task-related documents based on the index:
- Specification documents (specs/)
- Module documents (modules/)
- Development guides (guides/)
3. Read AGENTS.md (if exists) to understand project conventionsif user specified plan number or there is a clear ongoing plan:
→ Phase 3: Execute existing plan
else:
→ Prompt user to use project-planning to create a planUser: "Execute plan 001"
or
User: "Continue development of 001-user-authentication"
→ Route to Phase 3, read and execute the planUser: "Implement user authentication feature"
or
User: "Add API rate limiting"
→ Prompt user to use project-planning to create a plan first:
"Please use the project-planning skill to create an implementation plan first.
Execution methods: /project-planning
or tell me: 'Help me plan this feature'"1. Locate the plan file based on the user-specified number (e.g., docs/plans/001-user-authentication.md)
2. Read the complete content of the plan file
3. Check plan status (pending/in progress/completed)1. Convert tasks in the plan to todos using TodoWrite
2. Update plan status to "in progress"For each task:
1. Mark todo as in_progress
2. Execute task with reference to relevant documents
3. Run tests/verification
4. Mark todo as completed
5. Update task status in the plan file [x]
6. Add record to the execution record table1. Confirm all tasks are completed
2. Run complete test suite
3. Execute code review
4. Fix and optimize loop
5. Update plan status to "completed"
6. Enter Phase 4 to update documentationLoop until no major issues exist:
1. Call general-purpose agent
Using Task tool:
subagent_type="general-purpose"
description="Code review for recent changes"
prompt="
Please review the code changes for this feature/task.
Focus on the following aspects:
1. Code quality and best practices
- Code style and consistency
- Follow project conventions (check AGENTS.md if exists)
- SOLID principles and design patterns
2. Bugs and security
- Potential bugs or edge cases
- Security vulnerabilities (SQL injection, XSS, etc.)
- Completeness of error handling
3. Performance
- Performance bottlenecks
- Inefficient algorithms or queries
- Memory leaks or resource management issues
4. Maintainability
- Code readability and clarity
- Documentation and comments (when necessary)
- Test coverage
Please classify issues by severity:
- Blocking: Critical issues that must be fixed (security, severe bugs)
- Important: Important issues that should be fixed (performance, code quality)
- Minor: Improvement suggestions (readability, small optimizations)
Please provide specific file paths and line numbers for each issue.
"
2. Analyze review report
- Code standard issues
- Potential bugs and security vulnerabilities
- Performance optimization suggestions
- Maintainability issues
3. Classify by severity
- Blocking issues (must fix): Security vulnerabilities, severe bugs
- Important issues (should fix): Performance issues, code standards
- Suggested optimizations (optional): Readability improvements, small optimizations
4. Fix blocking and important issues
- Modify code
- Run tests to ensure fixes are effective
- Update relevant documentation
5. Re-run code review
- Verify issues are resolved
- Check for new issues introduced
6. Confirm completion
- No blocking issues
- Important issues are fixed or have a plan for handling
- User confirms to continue| Change Type | Documents to Update |
|---|---|
| New module added | docs/modules/{module}.md, docs/specs/SAD.md |
| API changes | docs/api/*.md |
| Database changes | docs/database/SCHEMA.md |
| New feature added | docs/specs/PRD.md |
| Architecture adjustment | docs/specs/SAD.md, AGENTS.md |
| Scenario | Handling Method |
|---|---|
| No docs/ directory | Automatically create documentation structure (Phase 0) |
| No docs/plans/ directory | Automatically create docs/plans/ directory |
| No plan file | Prompt user to use project-planning to create a plan |
| Code review agent execution failed | Check error message, try re-execution or skip code review |
| Blocking issues found in code review | Must fix before continuing, record in execution record |
| Code review iterations exceed 5 rounds | Discuss with user, decide whether to continue optimization or accept current status |
| Plan execution interrupted | Read plan file when resuming, continue from uncompleted tasks |
| Task execution failed | Record failure reason in execution record, ask user for handling method |
| Requirement change | Update plan file, mark original task status, add new tasks |
docs/plans/
├── 001-user-authentication.md
├── 002-llm-service-integration.md
├── 003-ocr-module.md
└── ...001-feature-name.mdCall using Skill tool: skill="project-planning"
or tell user: "/project-planning" or "Help me plan this feature"docs/plans/001-feature-name.mddocs/plans/001-feature-name.md