xiaohongshu
xiaohongshu
design-to-project
--- description: Full AI-AGENT-PLAYBOOK orchestration - transforms a design specification into project artifacts and begins implementation tags: [design, planning, project-init, tasks, implementation, orchestration] techStack: [all] appliesTo: ["projects/*/spec.md", "implement spec", "design to p...
Full skill instructions
Orchestrates the complete transformation of a Detailed Design Specification into executable project artifacts. This is the master skill that sequences project-init, task-create, and implementation workflows following the 5-phase AI-AGENT-PLAYBOOK.
/design-to-project {spec-path}| Input | Required | Source |
|---|---|---|
| Project path | Yes | Path to projects/{project-name}/ folder (must contain spec.md) |
| Target completion date | No | User provided or infer from spec |
| Project owner | No | User name or "unassigned" |
Design specs live with their project at projects/{project-name}/spec.md.
Workflow:
projects/{descriptive-name}/projects/{project-name}/spec.md/design-to-project projects/{project-name}┌─────────────────────────────────────────────────────────────────┐
│ DESIGN-TO-PROJECT PIPELINE │
├─────────────────────────────────────────────────────────────────┤
│ Phase 1: INGEST → Extract key info from design spec │
│ Phase 2: CONTEXT → Gather ADRs, architecture, existing code │
│ Phase 3: GENERATE → Create README, plan.md, task files │
│ Phase 4: VALIDATE → Cross-reference checklist before coding │
│ Phase 5: IMPLEMENT → Execute tasks with context management │
└─────────────────────────────────────────────────────────────────┘
IF project path provided (e.g., projects/sdap-fileviewer-enhancements-1):
EXTRACT project-name from folder name
VERIFY projects/{project-name}/spec.md exists
LOAD spec.md
ELSE:
ASK: "Please provide the project path (e.g., projects/my-feature)"
IF spec.md not found:
STOP: "spec.md not found at projects/{project-name}/spec.md
Please create the project folder and add spec.md first."
PARSE spec for these sections:
| Field | Look For | Required |
|-------|----------|----------|
| Feature Name | Title, "Overview" section | Yes |
| Problem Statement | "Problem", "Background", "Current State" | Yes |
| Solution Approach | "Solution", "Approach", "Design" | Yes |
| Data Model | "Data Model", "Entities", "Schema" | If applicable |
| API Endpoints | "API", "Endpoints", "Contracts" | If applicable |
| UI Components | "UI", "Screens", "Components" | If applicable |
| Acceptance Criteria | "Acceptance Criteria", "Requirements" | Yes |
| NFRs | "NFRs", "Performance", "Security" | If specified |
## Design Spec Summary
**Feature**: {Feature Name}
**Problem**: {1-2 sentence problem statement}
**Solution**: {1-2 sentence solution approach}
**Key Components**:
- {Component 1 - type: API/PCF/Plugin/etc.}
- {Component 2}
- {Component 3}
**Estimated Complexity**: {Low | Medium | High}
**Basis**: {Why this complexity level}
Proceeding to Phase 2: Context Gathering...
Search for related skills and knowledge docs:
Extract keywords from spec.md:
Search .claude/skills/INDEX.md:
tags or techStack in their YAML frontmatterSearch docs/ai-knowledge/:
Output: List of discovered skills and knowledge docs to use throughout pipeline.
READ: docs/ai-knowledge/CLAUDE.md for relevant articles
READ: docs/reference/adr/ index
FOR each technology in spec:
MATCH to relevant ADRs:
- PCF control → ADR-006, ADR-011, ADR-012
- API endpoint → ADR-001, ADR-007, ADR-008, ADR-010
- Dataverse plugin → ADR-002
- Caching → ADR-009
- Authorization → ADR-003, ADR-008
OUTPUT:
| ADR | Title | Constraint for This Project |
|-----|-------|----------------------------|
| ... | ... | {specific constraint} |
SEARCH src/ for similar implementations:
- PCF controls: src/client/pcf/
- API patterns: src/server/api/
- Shared libraries: src/client/shared/, src/server/shared/
OUTPUT:
| Component | Location | How to Reuse |
|-----------|----------|--------------|
| ... | ... | ... |
BASED ON technologies in spec, load:
- PCF: docs/ai-knowledge/guides/ PCF-related
- Auth: docs/ai-knowledge/standards/oauth-*, auth-*
- SDAP: docs/ai-knowledge/architecture/sdap-*
TRACK context usage - if > 50%:
→ Summarize key points
→ Reference file paths for later
→ Don't load full content
## Context Summary
**Applicable ADRs**: ADR-006, ADR-008, ADR-012 (etc.)
**Reusable Components**:
- {Component}: {brief description}
- {Component}: {brief description}
**Key Knowledge Articles**:
- `docs/ai-knowledge/architecture/{article}` - {key insight}
- `docs/ai-knowledge/standards/{article}` - {key insight}
**Architecture Fit**:
{How this feature fits into existing system}
Proceeding to Phase 3: Generate Artifacts...
INVOKE: /project-init {project-name}
WITH context:
- Design spec summary from Phase 1
- ADR constraints from Phase 2
- Complexity estimate from Phase 1
VERIFY outputs:
- projects/{project-name}/spec.md (input - already existed)
- projects/{project-name}/README.md
- projects/{project-name}/plan.md
- projects/{project-name}/CLAUDE.md
- projects/{project-name}/tasks/
ENHANCE README.md with Phase 2 findings:
- Add "Key Decisions" section linking ADRs
- Add "Dependencies" section with reusable components
- Add "Risks" section based on complexity and dependencies
ENHANCE plan.md with:
- Executive Summary from spec
- Solution Overview with architecture fit
- WBS phases based on spec sections:
| Spec Section | Generates Phase |
|--------------|-----------------|
| Data Model | Phase: Entity/Schema Setup |
| API Endpoints | Phase: API Development |
| UI Components | Phase: UI Development |
| Integration | Phase: Integration & Wiring |
| Security | Phase: Auth Implementation |
| Testing | Phase: Validation |
APPLY estimation heuristics:
- Simple CRUD endpoint: 0.5-1 day
- Complex endpoint with auth: 1-2 days
- PCF component (simple): 2-3 days
- PCF component (complex): 3-5 days
- Integration: 1-2 days
- Unit tests: 0.5 day per component
- Integration tests: 1-2 days
INVOKE: /task-create {project-name}
VERIFY outputs:
- tasks/TASK-INDEX.md exists
- Task files created for each WBS phase
- Dependencies mapped correctly
CREATE feature branch for this project:
git checkout -b feature/{project-name}
WHY at this point:
- All artifacts created (README, plan, tasks)
- Ready for commits that represent meaningful work
- PR can be created as draft for visibility
NAMING convention:
- feature/{project-name} ← matches project folder name
- Example: feature/ai-document-summary
COMMIT initial artifacts:
git add projects/{project-name}/
git commit -m "feat({scope}): initialize {project-name} project"
git push -u origin feature/{project-name}
OPTIONAL - Create draft PR:
gh pr create --draft --title "feat({scope}): {project-name}" \
--body "## Summary\nImplementation of {project-name}\n\n## Status\n- [x] Project initialized\n- [ ] Implementation in progress\n- [ ] Code review\n- [ ] Ready for merge"
VALIDATE all items:
□ ADR Compliance
- Plan phases don't violate ADR constraints
- Technology choices align with ADRs
- Example: PCF uses v9 Fluent UI (ADR-006)
□ Reuse Maximized
- Shared components referenced in tasks
- No reinventing existing utilities
- @spaarke/ui-components used where applicable
□ Scope Clear
- In-scope items listed in README
- Out-of-scope explicitly stated
- No ambiguous deliverables
□ Acceptance Testable
- Each criterion in README is measurable
- Tasks include verification steps
- "Done" is unambiguous
□ Dependencies Identified
- All external dependencies listed
- Blocking dependencies noted in tasks
- Environment requirements documented
□ Risks Mitigated
- High/Critical risks have mitigation plans
- Technical debt acknowledged
- Unknowns surfaced
## ✅ Ready for Development
**Project**: {feature-name}
**Location**: docs/projects/{feature-name}/
## ✅ Ready for Development
**Project**: {project-name}
**Location**: projects/{project-name}/
**Documents Created**:
- ✅ spec.md - Design specification (source of truth - input)
- ✅ README.md - Project overview, scope, graduation criteria
- ✅ plan.md - Implementation plan with WBS
- ✅ CLAUDE.md - AI context file
- ✅ tasks/TASK-INDEX.md - Task tracker
- ✅ {N} task files in tasks/
**Applicable ADRs**: {list}
**Reusable Components**:
- {component} ({purpose})
- {component} ({purpose})
**Estimated Effort**: {X} days ({Y} tasks)
**First Task**: `tasks/001-{slug}.md` - {title}
**Validation Checklist**: All items passed ✅
---
Ready to begin implementation? Reply "go" to start Phase 5.
BEFORE each task and AFTER each subtask:
CHECK context usage:
< 50% → ✅ Proceed normally
50-70% → ⚠️ Monitor, wrap up current subtask soon
> 70% → 🛑 STOP - Create handoff summary
> 85% → 🚨 CRITICAL - Immediate handoff
IF context reset needed:
CREATE handoff summary (see Handoff Protocol below)
OUTPUT: "Context limit reached. Handoff created. Start new chat."
FOR each task in execution order:
1. LOAD task file from tasks/{NNN}-{slug}.md
2. CHECK dependencies are met
3. GATHER resources (ADRs, patterns, related code)
4. EXECUTE steps from <steps> section
5. VERIFY outputs from <outputs> section
6. UPDATE task status to "completed"
7. CHECK context → reset if > 70%
ALWAYS APPLY spaarke-conventions skill during implementation:
- File naming conventions
- Code patterns (.NET, TypeScript)
- Error handling patterns
- Async patterns
REFER TO:
- .claude/skills/spaarke-conventions/SKILL.md
- Root CLAUDE.md for standards
AFTER implementing code:
RUN: /code-review {changed-files}
IF critical issues found:
FIX before marking task complete
IF warnings found:
NOTE in task completion summary
When context reaches 70%, create handoff summary:
## Handoff Summary - {project-name}
**Context Reset Trigger**: {current-task} at {step}
**Date**: {timestamp}
### Completed
- ✅ Phase 1: Ingest - {summary}
- ✅ Phase 2: Context - {summary}
- ✅ Phase 3: Generate - {artifacts created}
- ✅ Phase 4: Validate - {checklist passed}
- 🔄 Phase 5: Implement - {tasks completed}
### Current State
**Current Task**: {task-id} - {task-title}
**Current Step**: {step number/description}
**Files Modified**: {list}
**Tests Status**: {passing/failing}
### To Continue
1. Load: docs/projects/{project-name}/CLAUDE.md
2. Load: tasks/{current-task-id}.md
3. Resume at step: {step}
4. Remaining tasks: {list task IDs}
### Key Decisions Made
- {decision 1 with rationale}
- {decision 2 with rationale}
### Warnings/Issues
- {any blockers or concerns}
universal-quick-create, document-sync-workerdocs/ai-knowledge/templates/project-README.template.mddocs/ai-knowledge/templates/project-plan.template.mddocs/ai-knowledge/templates/task-execution.template.mddocs/ai-knowledge/templates/AI-AGENT-PLAYBOOK.md - Full playbook documentationTrigger: "Here's the design spec for Universal Quick Create PCF. Transform it to a project."
Process:
docs/projects/universal-quick-create/ with all artifactsTrigger: "/design-to-project but stop after planning"
Process:
Trigger: "Continue from the handoff summary you created"
Process:
Before declaring project ready for implementation:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience