This skill maintains the `context/` folder as a **wiki** - a stable reference for agents to get situational awareness. The context folder is **READ-ONLY during active workflows** and updated only by the archival skill after workflows complete.
/plugin marketplace add marcel-Ngan/ai-dev-team/plugin install marcel-ngan-ai-dev-team@marcel-Ngan/ai-dev-teamThis skill inherits all available tools. When active, it can use any tool Claude has access to.
templates/project-summary.template.mdtemplates/solution-summary.template.mdtemplates/story-summary.template.mdThis skill maintains the context/ folder as a wiki - a stable reference for agents to get situational awareness. The context folder is READ-ONLY during active workflows and updated only by the archival skill after workflows complete.
┌─────────────────────────────────────────────────────────────────┐
│ DURING ACTIVE WORKFLOW │
│ │
│ workflow/active/{name}/ ← WRITE HERE (all agent updates) │
│ context/ ← READ-ONLY (wiki reference) │
└─────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────┐
│ AFTER WORKFLOW COMPLETES (Archival Skill) │
│ │
│ workflow/active/{name}/ → Move to workflow/archive/ │
│ context/ ← UPDATED with learnings │
└─────────────────────────────────────────────────────────────────┘
The context folder lives in the project root:
project-root/
├── workflow/
│ └── active/ # Active workflow state (WRITE)
│ └── {workflow-name}/
│ ├── stories/*.md # Story details during workflow
│ └── ...
│
└── context/ # Wiki reference (READ-ONLY during workflow)
├── solution-summary.md # Solution overview
├── project/ # Module documentation
│ └── *.md
└── stories/ # Historical stories (from past workflows)
└── *.md
solution-summary.md)High-level overview of the entire solution. Read by all agents on initialization.
Target size: ~500 tokens
Contains:
Updated by: Archival skill (after workflows complete)
project/{name}-summary.md)Module/project-specific context. Read only when working on that module.
Target size: ~400 tokens
Contains:
Updated by: Archival skill (when module changes occur)
stories/{story_key}.md)Historical reference from past workflows. These are copies of story files from archived workflows.
Note: During an active workflow, story details live in workflow/active/{name}/stories/. After archival, they're copied here for future reference.
Target size: ~300-500 tokens
Contains:
When an agent is spawned for a task:
1. Read context/solution-summary.md (~500 tokens)
│
▼
2. (If working on active workflow)
Read workflow/active/{name}/workflow.md (~400 tokens)
Read workflow/active/{name}/stories/{key}.md (~300-500 tokens)
│
▼
OR (If no active workflow, just reference)
Read context/stories/{{story_key}}.md (historical)
│
▼
3. (If story references a project module)
Read context/project/{{project}}-summary.md (~400 tokens)
│
▼
4. Read specific files listed in "Relevant Files" section
│
▼
Total context: ~1000-1500 tokens
Agent is ready to work
| Folder | Status | Agent Action |
|---|---|---|
workflow/active/{name}/ | WRITE | All updates go here |
context/ | READ-ONLY | Reference only, no updates |
| Action | Source | Destination |
|---|---|---|
| Copy stories | workflow/archive/{name}/stories/ | context/stories/ |
| Update solution | Learnings from workflow | context/solution-summary.md |
| Update projects | Module changes | context/project/*.md |
# Solution Summary
## Overview
E-commerce platform for artisan bakery products.
## Tech Stack
- **Frontend:** Next.js 14, React, Tailwind CSS
- **Backend:** Next.js API routes, Prisma ORM
- **Database:** PostgreSQL
- **Payments:** Stripe
- **Auth:** NextAuth.js
## Architecture
src/ ├── app/ # Next.js app router pages ├── components/ # React components ├── services/ # Business logic (repository pattern) ├── types/ # TypeScript types └── tests/ # Test files mirror src structure
## Key Patterns
- Repository pattern for data access (`src/services/*Service.ts`)
- TDD: Tests written before implementation
- API routes return typed responses
## Conventions
- Components: PascalCase (`ProductCard.tsx`)
- Services: camelCase (`paymentService.ts`)
- Tests: `*.test.ts` in `__tests__/` folders
## Current Sprint
Sprint 5: Checkout flow implementation
## Constraints
- 100% test pass rate required
- 80% minimum code coverage
- All PRs require Senior review
# Project: Checkout Module
## Purpose
Handles the complete checkout flow from cart to order confirmation.
## Boundaries
- Receives cart data from Cart module
- Calls Payment module for processing
- Creates orders in database
- Triggers notifications
## Key Files
src/ ├── app/checkout/ │ ├── page.tsx # Checkout page │ └── confirmation/ │ └── page.tsx # Order confirmation ├── services/ │ ├── checkoutService.ts # Checkout orchestration │ └── orderService.ts # Order CRUD └── tests/checkout/ └── checkoutService.test.ts
## Integration Points
- `cartService.getCart()` - Get current cart
- `paymentService.createPayment()` - Process payment
- `notificationService.sendOrderConfirmation()` - Send email
## Module Patterns
- Checkout is a saga/orchestrator
- Orders are immutable after creation
- All prices in cents (integer)
| Approach | Tokens to Get Context |
|---|---|
| Full conversation history | 20,000 - 100,000+ |
| Re-read all docs | 10,000 - 30,000 |
| Context summaries | ~1,000 - 1,500 |
90-95% token reduction for agent initialization.
skills/workflow/workflow-tracking/ - Active workflow state (agents update here)skills/workflow/workflow-archival/ - Updates context after workflow completionskills/quality/gate-definitions/ - Gate thresholds| Agent | Usage |
|---|---|
| All Agents | READ summaries on initialization |
| Archival Skill | WRITE updates after workflow completes |
Note: Individual agents no longer directly update context/ files. All updates flow through the archival skill.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.