feat: initial commit for Paralax creative engineering system

This commit is contained in:
Itsmemarkmalvar
2026-10-12 21:21:33 +08:00
commit 516886dbe7
599 changed files with 227969 additions and 0 deletions

View File

@@ -0,0 +1,118 @@
---
name: brainstorm
description: Structured brainstorming for projects and features. Explores multiple options before implementation.
version: 1.0.0
requires_agents: project-planner
requires_skills: brainstorming
artifact_outputs: discovery-notes, decision-summary
---
# /brainstorm - Structured Idea Exploration
$ARGUMENTS
---
## Purpose
This command activates BRAINSTORM mode for structured idea exploration. Use when you need to explore options before committing to an implementation.
---
## Behavior
When `/brainstorm` is triggered:
1. **Understand the goal**
- What problem are we solving?
- Who is the user?
- What constraints exist?
2. **Generate options**
- Provide at least 3 different approaches
- Each with pros and cons
- Consider unconventional solutions
3. **Compare and recommend**
- Summarize tradeoffs
- Give a recommendation with reasoning
---
## Output Format
```markdown
## 🧠 Brainstorm: [Topic]
### Context
[Brief problem statement]
---
### Option A: [Name]
[Description]
✅ **Pros:**
- [benefit 1]
- [benefit 2]
❌ **Cons:**
- [drawback 1]
📊 **Effort:** Low | Medium | High
---
### Option B: [Name]
[Description]
✅ **Pros:**
- [benefit 1]
❌ **Cons:**
- [drawback 1]
- [drawback 2]
📊 **Effort:** Low | Medium | High
---
### Option C: [Name]
[Description]
✅ **Pros:**
- [benefit 1]
❌ **Cons:**
- [drawback 1]
📊 **Effort:** Low | Medium | High
---
## 💡 Recommendation
**Option [X]** because [reasoning].
What direction would you like to explore?
```
---
## Examples
```
/brainstorm authentication system
/brainstorm state management for complex form
/brainstorm database schema for social app
/brainstorm caching strategy
```
---
## Key Principles
- **No code** - this is about ideas, not implementation
- **Visual when helpful** - use diagrams for architecture
- **Honest tradeoffs** - don't hide complexity
- **Defer to user** - present options, let them decide

View File

@@ -0,0 +1,77 @@
---
name: coordinate
description: Advanced multi-agent coordination with parallel dispatch and synthesis. Use for complex tasks requiring multiple specialist perspectives.
version: 1.0.0
requires_agents: orchestrator
requires_skills: coordinator-mode, parallel-agents
artifact_outputs: coordination-plan, phase-status
---
# /coordinate — Advanced Multi-Agent Coordination
$ARGUMENTS
---
## 🔴 CRITICAL RULES
1. **Load coordinator-mode skill** — Read `.agents/skills/coordinator-mode/SKILL.md` first
2. **Phase-based execution** — Research → Synthesis → Implementation → Verification
3. **Never delegate understanding** — Write specific prompts, not vague instructions
4. **Parallel reads, sequential writes** — Read-only tasks can run in parallel
---
## Task
Use the `orchestrator` agent with this context:
```
CONTEXT:
- User Request: $ARGUMENTS
- Mode: COORDINATOR (advanced orchestration)
- Skill: Load coordinator-mode skill for patterns
WORKFLOW:
1. DECOMPOSE the request into worker subtasks
2. CLASSIFY each subtask: Research | Implementation | Verification
3. DISPATCH workers (parallel for reads, sequential for writes)
4. SYNTHESIZE results — don't copy-paste, add insight
5. VERIFY completeness before reporting to user
RULES:
1. Follow coordinator-mode/SKILL.md protocol
2. Brief workers like smart colleagues — full context, specific scope
3. Never write "based on your findings, fix it" — prove YOU understood
4. Start with 2-3 workers, add more after synthesis if needed
5. Research before implementation — ALWAYS
```
---
## Expected Output
| Deliverable | Description |
|-------------|-------------|
| Worker Dispatch | List of agents invoked with task descriptions |
| Synthesis Report | Consolidated findings with YOUR analysis |
| Action Items | Specific next steps with file paths |
---
## After Coordination
```
[OK] Coordination complete
Agents dispatched: [count]
Phases completed: Research → Synthesis → [Implementation] → [Verification]
Key findings:
- [Finding 1]
- [Finding 2]
Next steps:
- [ ] [Action item 1]
- [ ] [Action item 2]
```

View File

@@ -0,0 +1,68 @@
---
name: create
description: Create new application command. Triggers App Builder skill and starts interactive dialogue with user.
version: 1.0.0
requires_agents: orchestrator, project-planner
requires_skills: app-builder, design-spec, verify-changes
artifact_outputs: implementation-plan, changed-files, verification-report
---
# /create - Create Application
$ARGUMENTS
---
## Task
This command starts a new application creation process.
### Steps:
1. **Request Analysis**
- Understand what the user wants
- If information is missing, use the `brainstorming` skill to ask clarifying questions
2. **Project Planning**
- Use `project-planner` agent for task breakdown
- Determine tech stack
- Plan file structure
- Create the `{task-slug}.md` plan file in the project root, then proceed to building
3. **Design Source-of-Truth (UI projects only)**
- If the app has a UI, create `DESIGN.md` at the project root BEFORE building UI — follow the `design-spec` skill (read `collection.md` for real-world references first).
- Skip only for headless/CLI/API-only projects.
4. **Application Building (After Approval)**
- Orchestrate with `app-builder` skill
- Coordinate expert agents:
- `database-architect` → Schema
- `backend-specialist` → API
- `frontend-specialist` → UI (builds against `DESIGN.md` tokens)
5. **Preview**
- Start with `auto_preview.py` when complete
- Present URL to user
---
## Usage Examples
```
/create blog site
/create e-commerce app with product listing and cart
/create todo app
/create Instagram clone
/create crm system with customer management
```
---
## Before Starting
If request is unclear, ask these questions:
- What type of application?
- What are the basic features?
- Who will use it?
Use defaults, add details later.

108
.agents/workflows/debug.md Normal file
View File

@@ -0,0 +1,108 @@
---
name: debug
description: Debugging command. Activates DEBUG mode for systematic problem investigation.
version: 1.0.0
requires_agents: debugger
requires_skills: systematic-debugging, verify-changes
artifact_outputs: root-cause, fix-summary, verification-report
---
# /debug - Systematic Problem Investigation
$ARGUMENTS
---
## Purpose
This command activates DEBUG mode for systematic investigation of issues, errors, or unexpected behavior.
---
## Behavior
When `/debug` is triggered:
1. **Gather information**
- Error message
- Reproduction steps
- Expected vs actual behavior
- Recent changes
2. **Form hypotheses**
- List possible causes
- Order by likelihood
3. **Investigate systematically**
- Test each hypothesis
- Check logs, data flow
- Use elimination method
4. **Fix and prevent**
- Apply fix
- Explain root cause
- Add prevention measures
---
## Output Format
```markdown
## 🔍 Debug: [Issue]
### 1. Symptom
[What's happening]
### 2. Information Gathered
- Error: `[error message]`
- File: `[filepath]`
- Line: [line number]
### 3. Hypotheses
1. ❓ [Most likely cause]
2. ❓ [Second possibility]
3. ❓ [Less likely cause]
### 4. Investigation
**Testing hypothesis 1:**
[What I checked] → [Result]
**Testing hypothesis 2:**
[What I checked] → [Result]
### 5. Root Cause
🎯 **[Explanation of why this happened]**
### 6. Fix
```[language]
// Before
[broken code]
// After
[fixed code]
```
### 7. Prevention
🛡️ [How to prevent this in the future]
```
---
## Examples
```
/debug login not working
/debug API returns 500
/debug form doesn't submit
/debug data not saving
```
---
## Key Principles
- **Ask before assuming** - get full error context
- **Test hypotheses** - don't guess randomly
- **Explain why** - not just what to fix
- **Prevent recurrence** - add tests, validation

181
.agents/workflows/deploy.md Normal file
View File

@@ -0,0 +1,181 @@
---
name: deploy
description: Deployment command for production releases. Pre-flight checks and deployment execution.
version: 1.0.0
requires_agents: devops-engineer
requires_skills: deployment-procedures, verify-changes
artifact_outputs: deployment-plan, deployment-report, rollback-plan
---
# /deploy - Production Deployment
$ARGUMENTS
---
## Purpose
This command handles production deployment with pre-flight checks, deployment execution, and verification.
---
## Sub-commands
```
/deploy - Interactive deployment wizard
/deploy check - Run pre-deployment checks only
/deploy preview - Deploy to preview/staging
/deploy production - Deploy to production
/deploy rollback - Rollback to previous version
```
---
## Pre-Deployment Checklist
Before any deployment:
```markdown
## 🚀 Pre-Deploy Checklist
### Code Quality
- [ ] No TypeScript errors (`npx tsc --noEmit`)
- [ ] ESLint passing (`npx eslint .`)
- [ ] All tests passing (`npm test`)
### Security
- [ ] No hardcoded secrets
- [ ] Environment variables documented
- [ ] Dependencies audited (`npm audit`)
### Performance
- [ ] Bundle size acceptable
- [ ] No console.log statements
- [ ] Images optimized
### Documentation
- [ ] README updated
- [ ] CHANGELOG updated
- [ ] API docs current
### Ready to deploy? (y/n)
```
---
## Deployment Flow
```
┌─────────────────┐
│ /deploy │
└────────┬────────┘
│
▼
┌─────────────────┐
│ Pre-flight │
│ checks │
└────────┬────────┘
│
Pass? ──No──► Fix issues
│
Yes
│
▼
┌─────────────────┐
│ Build │
│ application │
└────────┬────────┘
│
▼
┌─────────────────┐
│ Deploy to │
│ platform │
└────────┬────────┘
│
▼
┌─────────────────┐
│ Health check │
│ & verify │
└────────┬────────┘
│
▼
┌─────────────────┐
│ ✅ Complete │
└─────────────────┘
```
---
## Output Format
### Successful Deploy
```markdown
## 🚀 Deployment Complete
### Summary
- **Version:** v1.2.3
- **Environment:** production
- **Duration:** [build + deploy time]
- **Platform:** Vercel
### URLs
- 🌐 Production: https://app.example.com
- 📊 Dashboard: https://vercel.com/project
### What Changed
- Added user profile feature
- Fixed login bug
- Updated dependencies
### Health Check
✅ API responding (200 OK)
✅ Database connected
✅ All services healthy
```
### Failed Deploy
```markdown
## ❌ Deployment Failed
### Error
Build failed at step: TypeScript compilation
### Details
```
error TS2345: Argument of type 'string' is not assignable...
```
### Resolution
1. Fix TypeScript error in `src/services/user.ts:45`
2. Run `npm run build` locally to verify
3. Try `/deploy` again
### Rollback Available
Previous version (v1.2.2) is still active.
Run `/deploy rollback` if needed.
```
---
## Platform Support
| Platform | Command | Notes |
|----------|---------|-------|
| Vercel | `vercel --prod` | Auto-detected for Next.js |
| Railway | `railway up` | Needs Railway CLI |
| Fly.io | `fly deploy` | Needs flyctl |
| Docker | `docker compose up -d` | For self-hosted |
---
## Examples
```
/deploy
/deploy check
/deploy preview
/deploy production
/deploy rollback
```

View File

@@ -0,0 +1,68 @@
---
name: enhance
description: Add or update features in existing application. Used for iterative development.
version: 1.0.0
requires_agents: code-archaeologist
requires_skills: simplify-code, clean-code, verify-changes
artifact_outputs: change-plan, changed-files, verification-report
---
# /enhance - Update Application
$ARGUMENTS
---
## Task
This command adds features or makes updates to existing application.
### Steps:
1. **Understand Current State**
- Load project state with `python .agents/scripts/session_manager.py info`
- Understand existing features, tech stack
2. **Plan Changes**
- Determine what will be added/changed
- Detect affected files
- Check dependencies
3. **Present Plan to User** (for major changes)
```
"To add admin panel:
- New files: admin routes, components, and access control
- Updates: navigation, auth middleware
- Scope: moderate (touches auth + routing)
Should I start?"
```
4. **Apply**
- Call relevant agents
- Make changes
- Test
5. **Update Preview**
- Hot reload or restart
---
## Usage Examples
```
/enhance add dark mode
/enhance build admin panel
/enhance integrate payment system
/enhance add search feature
/enhance edit profile page
/enhance make responsive
```
---
## Caution
- Get approval for major changes
- Warn on conflicting requests (e.g., "use Firebase" when project uses PostgreSQL)
- Commit each change with git

View File

@@ -0,0 +1,246 @@
---
name: orchestrate
description: Coordinate multiple agents for complex tasks. Use for multi-perspective analysis, comprehensive reviews, or tasks requiring different domain expertise.
version: 1.0.0
requires_agents: orchestrator
requires_skills: parallel-agents, coordinator-mode
artifact_outputs: task-graph, coordination-status, final-synthesis
---
# Multi-Agent Orchestration
You are now in **ORCHESTRATION MODE**. Your task: coordinate specialized agents to solve this complex problem.
## Task to Orchestrate
$ARGUMENTS
---
## 🔴 CRITICAL: Minimum Agent Requirement
> ⚠️ **ORCHESTRATION = MINIMUM 3 DIFFERENT AGENTS**
>
> If you use fewer than 3 agents, you are NOT orchestrating - you're just delegating.
>
> **Validation before completion:**
> - Count invoked agents
> - If `agent_count < 3` → STOP and invoke more agents
> - Single agent = FAILURE of orchestration
### Agent Selection Matrix
| Task Type | REQUIRED Agents (minimum) |
|-----------|---------------------------|
| **Web App** | frontend-specialist, backend-specialist, test-engineer |
| **API** | backend-specialist, security-auditor, test-engineer |
| **UI/Design** | frontend-specialist, seo-specialist, performance-optimizer |
| **Database** | database-architect, backend-specialist, security-auditor |
| **Full Stack** | project-planner, frontend-specialist, backend-specialist, devops-engineer |
| **Debug** | debugger, explorer-agent, test-engineer |
| **Security** | security-auditor, penetration-tester, devops-engineer |
---
## Pre-Flight: Mode Check
| Current Mode | Task Type | Action |
|--------------|-----------|--------|
| **plan** | Any | ✅ Proceed with planning-first approach |
| **edit** | Simple execution | ✅ Proceed directly |
| **edit** | Complex/multi-file | ⚠️ Ask: "This task requires planning. Switch to plan mode?" |
| **ask** | Any | ⚠️ Ask: "Ready to orchestrate. Switch to edit or plan mode?" |
---
## 🔴 STRICT 2-PHASE ORCHESTRATION
### PHASE 1: PLANNING (Sequential - NO parallel agents)
| Step | Agent | Action |
|------|-------|--------|
| 1 | `project-planner` | Create {task-slug}.md in project root |
| 2 | (optional) `explorer-agent` | Codebase discovery if needed |
> 🔴 **NO OTHER AGENTS during planning!** Only project-planner and explorer-agent.
### ⏸️ CHECKPOINT: User Approval
```
After {task-slug}.md is complete, ASK:
"✅ Plan created: {task-slug}.md
Do you approve? (Y/N)
- Y: Start implementation
- N: I'll revise the plan"
```
> 🔴 **DO NOT proceed to Phase 2 without explicit user approval!**
### PHASE 2: IMPLEMENTATION (Parallel agents after approval)
| Parallel Group | Agents |
|----------------|--------|
| Foundation | `database-architect`, `security-auditor` |
| Core | `backend-specialist`, `frontend-specialist` |
| Polish | `test-engineer`, `devops-engineer` |
> ✅ After user approval, invoke multiple agents in PARALLEL.
## Available Agents (20 total)
| Agent | Domain | Use When |
|-------|--------|----------|
| `project-planner` | Planning | Task breakdown, {task-slug}.md |
| `explorer-agent` | Discovery | Codebase mapping |
| `frontend-specialist` | UI/UX | React, Vue, CSS, HTML |
| `backend-specialist` | Server | API, Node.js, Python |
| `database-architect` | Data | SQL, NoSQL, Schema |
| `security-auditor` | Security | Vulnerabilities, Auth |
| `penetration-tester` | Security | Active testing |
| `test-engineer` | Testing | Unit, E2E, Coverage |
| `qa-automation-engineer` | QA | E2E pipelines, test automation |
| `devops-engineer` | Ops | CI/CD, Docker, Deploy |
| `mobile-developer` | Mobile | React Native, Flutter |
| `performance-optimizer` | Speed | Lighthouse, Profiling |
| `seo-specialist` | SEO | Meta, Schema, Rankings |
| `documentation-writer` | Docs | README, API docs |
| `debugger` | Debug | Error analysis |
| `game-developer` | Games | Unity, Godot |
| `code-archaeologist` | Legacy | Refactoring, legacy code |
| `product-manager` | Product | Requirements, user stories |
| `product-owner` | Product | Backlog, MVP, strategy |
| `orchestrator` | Meta | Coordination |
---
## Orchestration Protocol
### Step 1: Analyze Task Domains
Identify ALL domains this task touches:
```
□ Security → security-auditor, penetration-tester
□ Backend/API → backend-specialist
□ Frontend/UI → frontend-specialist
□ Database → database-architect
□ Testing → test-engineer
□ DevOps → devops-engineer
□ Mobile → mobile-developer
□ Performance → performance-optimizer
□ SEO → seo-specialist
□ Planning → project-planner
```
### Step 2: Phase Detection
| If Plan Exists | Action |
|----------------|--------|
| NO `{task-slug}.md` | → Go to PHASE 1 (planning only) |
| YES `{task-slug}.md` + user approved | → Go to PHASE 2 (implementation) |
### Step 3: Execute Based on Phase
**PHASE 1 (Planning):**
```
Use the project-planner agent to create {task-slug}.md
→ STOP after plan is created
→ ASK user for approval
```
**PHASE 2 (Implementation - after approval):**
```
Invoke agents in PARALLEL:
Use the frontend-specialist agent to [task]
Use the backend-specialist agent to [task]
Use the test-engineer agent to [task]
```
**🔴 CRITICAL: Context Passing (MANDATORY)**
When invoking ANY subagent, you MUST include:
1. **Original User Request:** Full text of what user asked
2. **Decisions Made:** All user answers to Socratic questions
3. **Previous Agent Work:** Summary of what previous agents did
4. **Current Plan State:** If plan files exist in workspace, include them
**Example with FULL context:**
```
Use the project-planner agent to create {task-slug}.md:
**CONTEXT:**
- User Request: "A social platform for students, using mock data"
- Decisions: Tech=Vue 3, Layout=Grid Widgets, Auth=Mock, Design=Youthful & dynamic
- Previous Work: Orchestrator asked 6 questions, user chose all options
- Current Plan: playful-roaming-dream.md exists in workspace with initial structure
**TASK:** Create detailed {task-slug}.md based on ABOVE decisions. Do NOT infer from folder name.
```
> ⚠️ **VIOLATION:** Invoking subagent without full context = subagent will make wrong assumptions!
### Step 4: Verification (MANDATORY)
The LAST agent must run appropriate verification scripts:
```bash
python .agents/skills/vulnerability-scanner/scripts/security_scan.py .
python .agents/skills/lint-and-validate/scripts/lint_runner.py .
```
### Step 5: Synthesize Results
Combine all agent outputs into unified report.
---
## Output Format
```markdown
## 🎼 Orchestration Report
### Task
[Original task summary]
### Mode
[Current AG Kit Agent mode: plan/edit/ask]
### Agents Invoked (MINIMUM 3)
| # | Agent | Focus Area | Status |
|---|-------|------------|--------|
| 1 | project-planner | Task breakdown | ✅ |
| 2 | frontend-specialist | UI implementation | ✅ |
| 3 | test-engineer | Verification scripts | ✅ |
### Verification Scripts Executed
- [x] security_scan.py → Pass/Fail
- [x] lint_runner.py → Pass/Fail
### Key Findings
1. **[Agent 1]**: Finding
2. **[Agent 2]**: Finding
3. **[Agent 3]**: Finding
### Deliverables
- [ ] {task-slug}.md created
- [ ] Code implemented
- [ ] Tests passing
- [ ] Scripts verified
### Summary
[One paragraph synthesis of all agent work]
```
---
## 🔴 EXIT GATE
Before completing orchestration, verify:
1. ✅ **Agent Count:** `invoked_agents >= 3`
2. ✅ **Scripts Executed:** At least `security_scan.py` ran
3. ✅ **Report Generated:** Orchestration Report with all agents listed
> **If any check fails → DO NOT mark orchestration complete. Invoke more agents or run scripts.**
---
**Begin orchestration now. Select 3+ agents, execute sequentially, run verification scripts, synthesize results.**

94
.agents/workflows/plan.md Normal file
View File

@@ -0,0 +1,94 @@
---
name: plan
description: Create project plan using project-planner agent. No code writing - only plan file generation.
version: 1.0.0
requires_agents: project-planner
requires_skills: plan-writing, architecture
artifact_outputs: implementation-plan
---
# /plan - Project Planning Mode
$ARGUMENTS
---
## 🔴 CRITICAL RULES
1. **NO CODE WRITING** - This command creates plan file only
2. **Use project-planner agent** - NOT AG Kit Agent's native Plan mode
3. **Socratic Gate** - Ask clarifying questions before planning
4. **Dynamic Naming** - Plan file named based on task
---
## Task
Use the `project-planner` agent with this context:
```
CONTEXT:
- User Request: $ARGUMENTS
- Mode: PLANNING ONLY (no code)
- Output: {task-slug}.md in project root (dynamic naming)
NAMING RULES:
1. Extract 2-3 key words from request
2. Lowercase, hyphen-separated
3. Max 30 characters
4. Example: "e-commerce cart" → ecommerce-cart.md
RULES:
1. Follow project-planner.md Phase -1 (Context Check)
2. Follow project-planner.md Phase 0 (Socratic Gate)
3. Create {slug}.md with task breakdown
4. DO NOT write any code files
5. REPORT the exact file name created
```
---
## Expected Output
| Deliverable | Location |
|-------------|----------|
| Project Plan | `{task-slug}.md` in project root |
| Task Breakdown | Inside plan file |
| Agent Assignments | Inside plan file |
| Verification Checklist | Phase X in plan file |
---
## After Planning
Tell user:
```
[OK] Plan created: {slug}.md in project root
Next steps:
- Review the plan
- Run `/create` to start implementation
- Or modify plan manually
```
---
## Naming Examples
| Request | Plan File |
|---------|-----------|
| `/plan e-commerce site with cart` | `ecommerce-cart.md` |
| `/plan mobile app for fitness` | `fitness-app.md` |
| `/plan add dark mode feature` | `dark-mode.md` |
| `/plan fix authentication bug` | `auth-fix.md` |
| `/plan SaaS dashboard` | `saas-dashboard.md` |
---
## Usage
```
/plan e-commerce site with cart
/plan mobile app for fitness tracking
/plan SaaS dashboard with analytics
```

View File

@@ -0,0 +1,86 @@
---
name: preview
description: Preview server start, stop, and status check. Local development server management.
version: 1.0.0
requires_agents: frontend-specialist
requires_skills: verify-changes
artifact_outputs: preview-status, runtime-findings
---
# /preview - Preview Management
$ARGUMENTS
---
## Task
Manage preview server: start, stop, status check.
### Commands
```
/preview - Show current status
/preview start - Start server
/preview stop - Stop server
/preview restart - Restart
/preview check - Health check
```
---
## Usage Examples
### Start Server
```
/preview start
Response:
🚀 Starting preview...
Port: 3000
Type: Next.js
✅ Preview ready!
URL: http://localhost:3000
```
### Status Check
```
/preview
Response:
=== Preview Status ===
🌐 URL: http://localhost:3000
📁 Project: C:/projects/my-app
🏷️ Type: nextjs
💚 Health: OK
```
### Port Conflict
```
/preview start
Response:
⚠️ Port 3000 is in use.
Options:
1. Start on port 3001
2. Close app on 3000
3. Specify different port
Which one? (default: 1)
```
---
## Technical
Auto preview uses `auto_preview.py` script:
```bash
python .agents/scripts/auto_preview.py start [port]
python .agents/scripts/auto_preview.py stop
python .agents/scripts/auto_preview.py status
```

View File

@@ -0,0 +1,72 @@
---
name: remember
description: Save information to persistent memory for cross-session recall. Stores preferences, conventions, decisions, and context.
version: 1.0.0
requires_agents: orchestrator
requires_skills: memory-system
artifact_outputs: memory-entry
---
# /remember — Persistent Memory Management
$ARGUMENTS
---
## 🔴 CRITICAL RULES
1. **Load memory-system skill** — Read `.agents/skills/memory-system/SKILL.md` first
2. **Never auto-delete memories** — Always ask user before pruning
3. **Keep index under 200 lines** — Warn if approaching limit
4. **Distill, don't copy** — Save insights, not full conversations
---
## Task
Use the `memory-system` skill to save information:
```
CONTEXT:
- User wants to remember: $ARGUMENTS
- Memory location: .agents/memory/
WORKFLOW:
1. CLASSIFY the information type: user | feedback | project | reference
2. CHECK if relevant topic file exists in .agents/memory/
3. SAVE to appropriate topic file (create if needed)
4. UPDATE .agents/memory/MEMORY.md index with one-line pointer
5. CONFIRM to user what was saved
RULES:
1. Follow memory-system/SKILL.md taxonomy
2. Keep index entries under 150 characters
3. Topic files must have frontmatter (type, created, updated)
4. Don't save information derivable from code
5. Don't save temporary debug context
```
---
## Expected Output
```
[OK] Saved to memory
Type: [user/feedback/project/reference]
File: .agents/memory/[topic-file].md
Entry: [one-line summary of what was saved]
This will be available in future sessions.
```
---
## Usage Examples
```
/remember I prefer using bun instead of npm
/remember Our API uses JWT with httpOnly cookies
/remember The production server is at api.example.com:8080
/remember I like concise responses with tables
```

View File

@@ -0,0 +1,91 @@
---
name: status
description: Display agent and project status. Progress tracking and status board.
version: 1.0.0
requires_agents: orchestrator
requires_skills: context-compression, memory-system
artifact_outputs: status-report
---
# /status - Show Status
$ARGUMENTS
---
## Task
Show current project and agent status.
### What It Shows
1. **Project Info**
- Project name and path
- Tech stack
- Current features
2. **Agent Status Board**
- Which agents are running
- Which tasks are completed
- Pending work
3. **File Statistics**
- Files created count
- Files modified count
4. **Preview Status**
- Is server running
- URL
- Health check
---
## Example Output
```
=== Project Status ===
📁 Project: my-ecommerce
📂 Path: C:/projects/my-ecommerce
🏷️ Type: nextjs-ecommerce
📊 Status: active
🔧 Tech Stack:
Framework: next.js
Database: postgresql
Auth: clerk
Payment: stripe
✅ Features (5):
• product-listing
• cart
• checkout
• user-auth
• order-history
⏳ Pending (2):
• admin-panel
• email-notifications
📄 Files: 73 created, 12 modified
=== Agent Status ===
✅ database-architect → Completed
✅ backend-specialist → Completed
🔄 frontend-specialist → Dashboard components (60%)
⏳ test-engineer → Waiting
=== Preview ===
🌐 URL: http://localhost:3000
💚 Health: OK
```
---
## Technical
Status uses these scripts:
- `python .agents/scripts/session_manager.py status`
- `python .agents/scripts/auto_preview.py status`

149
.agents/workflows/test.md Normal file
View File

@@ -0,0 +1,149 @@
---
name: test
description: Test generation and test running command. Creates and executes tests for code.
version: 1.0.0
requires_agents: test-engineer
requires_skills: testing-patterns, verify-changes
artifact_outputs: test-report
---
# /test - Test Generation and Execution
$ARGUMENTS
---
## Purpose
This command generates tests, runs existing tests, or checks test coverage.
---
## Sub-commands
```
/test - Run all tests
/test [file/feature] - Generate tests for specific target
/test coverage - Show test coverage report
/test watch - Run tests in watch mode
```
---
## Behavior
### Generate Tests
When asked to test a file or feature:
1. **Analyze the code**
- Identify functions and methods
- Find edge cases
- Detect dependencies to mock
2. **Generate test cases**
- Happy path tests
- Error cases
- Edge cases
- Integration tests (if needed)
3. **Write tests**
- Use project's test framework (Jest, Vitest, etc.)
- Follow existing test patterns
- Mock external dependencies
---
## Output Format
### For Test Generation
```markdown
## 🧪 Tests: [Target]
### Test Plan
| Test Case | Type | Coverage |
|-----------|------|----------|
| Should create user | Unit | Happy path |
| Should reject invalid email | Unit | Validation |
| Should handle db error | Unit | Error case |
### Generated Tests
`tests/[file].test.ts`
[Code block with tests]
---
Run with: `npm test`
```
### For Test Execution
```
🧪 Running tests...
✅ auth.test.ts (5 passed)
✅ user.test.ts (8 passed)
❌ order.test.ts (2 passed, 1 failed)
Failed:
✗ should calculate total with discount
Expected: 90
Received: 100
Total: 15 tests (14 passed, 1 failed)
```
---
## Examples
```
/test src/services/auth.service.ts
/test user registration flow
/test coverage
/test fix failed tests
```
---
## Test Patterns
### Unit Test Structure
```typescript
describe('AuthService', () => {
describe('login', () => {
it('should return token for valid credentials', async () => {
// Arrange
const credentials = { email: 'test@test.com', password: 'pass123' };
// Act
const result = await authService.login(credentials);
// Assert
expect(result.token).toBeDefined();
});
it('should throw for invalid password', async () => {
// Arrange
const credentials = { email: 'test@test.com', password: 'wrong' };
// Act & Assert
await expect(authService.login(credentials)).rejects.toThrow('Invalid credentials');
});
});
});
```
---
## Key Principles
- **Test behavior not implementation**
- **One assertion per test** (when practical)
- **Descriptive test names**
- **Arrange-Act-Assert pattern**
- **Mock external dependencies**

View File

@@ -0,0 +1,77 @@
---
name: verify
description: Verify code changes work by running them. Proves through execution, not just inspection.
version: 1.0.0
requires_agents: test-engineer
requires_skills: verify-changes, lint-and-validate
artifact_outputs: verification-report
---
# /verify — Prove Code Works
$ARGUMENTS
---
## 🔴 CRITICAL RULES
1. **Load verify-changes skill** — Read `.agents/skills/verify-changes/SKILL.md` first
2. **Execute, don't inspect** — Run the code, don't just read it
3. **Report evidence** — Show actual output, not assumptions
4. **Cover edge cases** — Test error paths, not just happy path
---
## Task
Use the `verify-changes` skill to prove code works:
```
CONTEXT:
- What to verify: $ARGUMENTS
- If empty: verify the most recent code changes in this session
WORKFLOW:
1. IDENTIFY what changed (files, functions, behavior)
2. DETERMINE verification method (build, test, run, curl)
3. EXECUTE verification commands
4. REPORT evidence of success or failure
5. FLAG anything that couldn't be verified automatically
RULES:
1. Follow verify-changes/SKILL.md protocol
2. "It should work" is NOT verification — run it
3. Test error paths, not just success paths
4. Report with actual command output as evidence
```
---
## Expected Output
```
## Verification Report
### Changes Verified
- [file/change 1]: ✅ Pass
- [file/change 2]: ✅ Pass
### Evidence
- Build: ✅ Compiled without errors
- Tests: ✅ [N]/[N] passing
- Runtime: ✅ [specific verification result]
### Not Verified
- [anything that needs manual testing]
```
---
## Usage Examples
```
/verify
/verify the login endpoint handles expired tokens
/verify build passes after refactoring
/verify the new component renders correctly
```