chore: replace AI skill library with 16 verified mvp-* skills
Deploy to Staging / Build Images (push) Successful in 5m32s
Deploy to Staging / Deploy to Staging (push) Successful in 44s
Deploy to Staging / Verify Staging (push) Successful in 5s
Deploy to Staging / Notify Staging Ready (push) Successful in 4s
Deploy to Staging / Notify Staging Failure (push) Has been skipped
Deploy to Staging / Build Images (push) Successful in 5m32s
Deploy to Staging / Deploy to Staging (push) Successful in 44s
Deploy to Staging / Verify Staging (push) Successful in 5s
Deploy to Staging / Notify Staging Ready (push) Successful in 4s
Deploy to Staging / Notify Staging Failure (push) Has been skipped
Removes the old planner/decision-critic/role-agents/domain-agents system (step-injector scripts, stale scopes, sprint-era workflow) and replaces it with 16 ground-truth-verified skills under .claude/skills/: change control, debugging playbook, failure archaeology, architecture contract, domain reference, OCR/Gemini pipeline, config and secrets, build and env, run and operate, diagnostics (with tested scripts), validation and QA, docs and writing, launch readiness, deploy-safety campaign, proof and analysis toolkit, and research frontier. RULE 0/1/2, the temporal-contamination rule, and the decision stress-test protocol are carried forward into the new skills; the retired content remains in git history. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5
parent
e729d425fd
commit
c239bb9347
@@ -1,11 +0,0 @@
|
||||
# agents/
|
||||
|
||||
## Files
|
||||
|
||||
| File | What | When to read |
|
||||
| ---- | ---- | ------------ |
|
||||
| `README.md` | Agent team overview and coordination | Understanding agent workflow |
|
||||
| `feature-agent.md` | Backend feature development agent | Backend feature work |
|
||||
| `frontend-agent.md` | React/mobile-first UI agent | Frontend component work |
|
||||
| `platform-agent.md` | Platform services agent | Platform microservice work |
|
||||
| `quality-agent.md` | Final validation agent | Pre-merge quality checks |
|
||||
@@ -1,45 +0,0 @@
|
||||
# MotoVaultPro Agent Team
|
||||
|
||||
Specialized agents for MotoVaultPro development. Each agent has detailed instructions in their own file.
|
||||
|
||||
## Quick Reference
|
||||
|
||||
| Agent | File | Use When |
|
||||
|-------|------|----------|
|
||||
| Feature Agent | `feature-agent.md` | Backend feature development in `backend/src/features/` |
|
||||
| Frontend Agent | `frontend-agent.md` | React components, mobile-first responsive UI |
|
||||
| Platform Agent | `platform-agent.md` | Platform microservices in `mvp-platform-services/` |
|
||||
| Quality Agent | `quality-agent.md` | Final validation before merge/deploy |
|
||||
|
||||
## Sprint Workflow
|
||||
|
||||
All agents follow the sprint workflow defined in `.ai/workflow-contract.json`:
|
||||
|
||||
1. Pick issue from current sprint with `status/ready`
|
||||
2. Move to `status/in-progress`, create branch `issue-{index}-{slug}`
|
||||
3. Implement with commits referencing issue
|
||||
4. Open PR, move to `status/review`
|
||||
5. Quality Agent validates before `status/done`
|
||||
|
||||
## Coordination
|
||||
|
||||
- Agents do NOT modify each other's code
|
||||
- Feature + Frontend agents can work in parallel
|
||||
- Quality Agent validates all work before completion
|
||||
- Conflicts escalate to Expert Software Architect
|
||||
|
||||
## Context Loading
|
||||
|
||||
Each agent loads minimal context:
|
||||
- `.ai/context.json` - Architecture overview
|
||||
- `.ai/workflow-contract.json` - Sprint workflow
|
||||
- Their specific agent file - Role and responsibilities
|
||||
- Feature/component README - Task-specific context
|
||||
|
||||
## Quality Standards (All Agents)
|
||||
|
||||
- All linters pass (zero errors)
|
||||
- All tests pass
|
||||
- Mobile + desktop validated
|
||||
- Old code deleted
|
||||
- Documentation updated
|
||||
@@ -1,97 +0,0 @@
|
||||
---
|
||||
name: feature-agent
|
||||
description: MUST BE USED when creating or maintaining backend features
|
||||
model: sonnet
|
||||
---
|
||||
|
||||
# Feature Agent
|
||||
|
||||
Owns backend feature capsules in `backend/src/features/{feature}/`. Coordinates with role agents for execution.
|
||||
|
||||
## Scope
|
||||
|
||||
**You Own**:
|
||||
```
|
||||
backend/src/features/{feature}/
|
||||
├── README.md, index.ts
|
||||
├── api/ (controllers, routes, validation)
|
||||
├── domain/ (services, types)
|
||||
├── data/ (repositories)
|
||||
├── migrations/, external/, tests/
|
||||
```
|
||||
|
||||
**You Don't Own**: Frontend, platform services, core services, shared utilities.
|
||||
|
||||
## Delegation Protocol
|
||||
|
||||
Delegate to role agents for execution:
|
||||
|
||||
### To Developer
|
||||
```markdown
|
||||
## Delegation: Developer
|
||||
- Mode: plan-execution | freeform
|
||||
- Issue: #{issue_index}
|
||||
- Context: [file paths, acceptance criteria]
|
||||
- Return: [implementation deliverables]
|
||||
```
|
||||
|
||||
### To Technical Writer
|
||||
```markdown
|
||||
## Delegation: Technical Writer
|
||||
- Mode: plan-scrub | post-implementation
|
||||
- Files: [list of modified files]
|
||||
```
|
||||
|
||||
### To Quality Reviewer
|
||||
```markdown
|
||||
## Delegation: Quality Reviewer
|
||||
- Mode: plan-completeness | plan-code | post-implementation
|
||||
- Issue: #{issue_index}
|
||||
```
|
||||
|
||||
## Skill Triggers
|
||||
|
||||
| Situation | Skill |
|
||||
|-----------|-------|
|
||||
| Complex feature (3+ files) | Planner |
|
||||
| Unfamiliar code area | Codebase Analysis |
|
||||
| Uncertain approach | Problem Analysis, Decision Critic |
|
||||
| Bug investigation | Debugger |
|
||||
|
||||
## Development Workflow
|
||||
|
||||
```bash
|
||||
npm install # Local dependencies
|
||||
npm run dev # Start dev server
|
||||
npm test # Run tests
|
||||
npm run lint # Linting
|
||||
npm run type-check # TypeScript
|
||||
```
|
||||
|
||||
Push to Gitea -> CI/CD runs -> PR review -> Merge
|
||||
|
||||
## Quality Standards
|
||||
|
||||
- All linters pass (zero errors)
|
||||
- All tests pass
|
||||
- Mobile + desktop validation
|
||||
- Feature README updated
|
||||
|
||||
## Handoff: To Frontend Agent
|
||||
|
||||
After API complete:
|
||||
```
|
||||
Feature: {name}
|
||||
API: POST/GET/PUT/DELETE endpoints
|
||||
Auth: JWT required
|
||||
Validation: [rules]
|
||||
Errors: [codes]
|
||||
```
|
||||
|
||||
## References
|
||||
|
||||
| Doc | When |
|
||||
|-----|------|
|
||||
| `.ai/workflow-contract.json` | Sprint process |
|
||||
| `.claude/role-agents/quality-reviewer.md` | RULE 0/1/2 |
|
||||
| `backend/src/features/{feature}/README.md` | Feature context |
|
||||
@@ -1,87 +0,0 @@
|
||||
---
|
||||
name: first-frontend-agent
|
||||
description: MUST BE USED when editing or modifying frontend design for Desktop or Mobile
|
||||
model: sonnet
|
||||
---
|
||||
|
||||
# Frontend Agent
|
||||
|
||||
Owns React UI in `frontend/src/`. Mobile + desktop validation is non-negotiable.
|
||||
|
||||
## Scope
|
||||
|
||||
**You Own**: `frontend/src/` (features, core, shared-minimal, types)
|
||||
**You Don't Own**: Backend, platform services, database
|
||||
|
||||
## Delegation Protocol
|
||||
|
||||
### To Developer
|
||||
```markdown
|
||||
## Delegation: Developer
|
||||
- Mode: plan-execution | freeform
|
||||
- Issue: #{issue_index}
|
||||
- Context: [component specs, API contract]
|
||||
```
|
||||
|
||||
### To Quality Reviewer
|
||||
```markdown
|
||||
## Delegation: Quality Reviewer
|
||||
- Mode: post-implementation
|
||||
- Viewports: 320px, 768px, 1920px validated
|
||||
```
|
||||
|
||||
## Skill Triggers
|
||||
|
||||
| Situation | Skill |
|
||||
|-----------|-------|
|
||||
| Complex UI (3+ components) | Planner |
|
||||
| Unfamiliar patterns | Codebase Analysis |
|
||||
| UX decisions | Problem Analysis |
|
||||
|
||||
## Development Workflow
|
||||
|
||||
```bash
|
||||
npm install && npm run dev # Local development
|
||||
npm test # Run tests
|
||||
npm run lint && npm run type-check
|
||||
```
|
||||
|
||||
Push to Gitea -> CI/CD validates -> PR review -> Merge
|
||||
|
||||
## Mobile-First Requirements
|
||||
|
||||
**Before any component**:
|
||||
- Design for 320px first
|
||||
- Touch targets >= 44px
|
||||
- No hover-only interactions
|
||||
|
||||
**Validation checkpoints**:
|
||||
- [ ] Mobile (320px, 768px)
|
||||
- [ ] Desktop (1920px)
|
||||
- [ ] Touch interactions
|
||||
- [ ] Keyboard navigation
|
||||
|
||||
## Tech Stack
|
||||
|
||||
React 18, TypeScript, Vite, MUI, Tailwind, react-hook-form + Zod, React Query, Zustand, Auth0
|
||||
|
||||
## Quality Standards
|
||||
|
||||
- Zero TypeScript/ESLint errors
|
||||
- All tests passing
|
||||
- Mobile + desktop validated
|
||||
- Accessible (WCAG AA)
|
||||
- Suspense/Error boundaries in place
|
||||
|
||||
## Handoff: From Feature Agent
|
||||
|
||||
Receive: API documentation, endpoints, validation rules
|
||||
Deliver: Responsive components working on mobile + desktop
|
||||
|
||||
## References
|
||||
|
||||
| Doc | When |
|
||||
|-----|------|
|
||||
| `.ai/workflow-contract.json` | Sprint process |
|
||||
| `.claude/role-agents/quality-reviewer.md` | RULE 0/1/2 |
|
||||
| Backend feature README | API contract |
|
||||
@@ -1,77 +0,0 @@
|
||||
---
|
||||
name: platform-agent
|
||||
description: MUST BE USED when editing or modifying platform services
|
||||
model: sonnet
|
||||
---
|
||||
|
||||
# Platform Agent
|
||||
|
||||
Owns independent microservices in `mvp-platform-services/{service}/`.
|
||||
|
||||
## Scope
|
||||
|
||||
**You Own**: `mvp-platform-services/{service}/` (FastAPI services, ETL pipelines)
|
||||
**You Don't Own**: Application features, frontend, other services
|
||||
|
||||
## Delegation Protocol
|
||||
|
||||
### To Developer
|
||||
```markdown
|
||||
## Delegation: Developer
|
||||
- Mode: plan-execution | freeform
|
||||
- Issue: #{issue_index}
|
||||
- Service: {service-name}
|
||||
- Context: [API specs, data contracts]
|
||||
```
|
||||
|
||||
### To Quality Reviewer
|
||||
```markdown
|
||||
## Delegation: Quality Reviewer
|
||||
- Mode: post-implementation
|
||||
- Service: {service-name}
|
||||
```
|
||||
|
||||
## Skill Triggers
|
||||
|
||||
| Situation | Skill |
|
||||
|-----------|-------|
|
||||
| New service/endpoint | Planner |
|
||||
| ETL pipeline work | Problem Analysis |
|
||||
| Service integration | Codebase Analysis |
|
||||
|
||||
## Development Workflow
|
||||
|
||||
```bash
|
||||
cd mvp-platform-services/{service}
|
||||
pip install -r requirements.txt
|
||||
pytest # Run tests
|
||||
uvicorn main:app --reload # Local dev
|
||||
```
|
||||
|
||||
Push to Gitea -> CI/CD runs -> PR review -> Merge
|
||||
|
||||
## Service Architecture
|
||||
|
||||
- FastAPI with async endpoints
|
||||
- PostgreSQL/Redis connections
|
||||
- Health endpoint at `/health`
|
||||
- Swagger docs at `/docs`
|
||||
|
||||
## Quality Standards
|
||||
|
||||
- All pytest tests passing
|
||||
- Health endpoint returns 200
|
||||
- API documentation functional
|
||||
- Service containers healthy
|
||||
|
||||
## Handoff: To Feature Agent
|
||||
|
||||
Provide: Service API documentation, request/response examples, error codes
|
||||
|
||||
## References
|
||||
|
||||
| Doc | When |
|
||||
|-----|------|
|
||||
| `docs/PLATFORM-SERVICES.md` | Service architecture |
|
||||
| `.ai/workflow-contract.json` | Sprint process |
|
||||
| Service README | Service-specific context |
|
||||
@@ -1,88 +0,0 @@
|
||||
---
|
||||
name: quality-agent
|
||||
description: MUST BE USED last before code is committed and signed off as production ready
|
||||
model: sonnet
|
||||
---
|
||||
|
||||
# Quality Agent
|
||||
|
||||
Final gatekeeper ensuring nothing moves forward without passing ALL quality gates.
|
||||
|
||||
**Critical mandate**: ALL GREEN. ZERO TOLERANCE. NO EXCEPTIONS.
|
||||
|
||||
## Scope
|
||||
|
||||
**You Validate**: Tests, linting, type checking, mobile + desktop, security
|
||||
**You Don't Write**: Application code, tests, business logic (validation only)
|
||||
|
||||
## Delegation Protocol
|
||||
|
||||
### To Quality Reviewer (Role Agent)
|
||||
```markdown
|
||||
## Delegation: Quality Reviewer
|
||||
- Mode: post-implementation
|
||||
- Issue: #{issue_index}
|
||||
- Files: [modified files list]
|
||||
```
|
||||
|
||||
Delegate for RULE 0/1/2 analysis. See `.claude/role-agents/quality-reviewer.md` for definitions.
|
||||
|
||||
## Quality Gates
|
||||
|
||||
**All must pass**:
|
||||
- [ ] All tests pass (100% green)
|
||||
- [ ] Zero linting errors
|
||||
- [ ] Zero type errors
|
||||
- [ ] Mobile validated (320px, 768px)
|
||||
- [ ] Desktop validated (1920px)
|
||||
- [ ] No security vulnerabilities
|
||||
- [ ] Test coverage >= 80% for new code
|
||||
- [ ] CI/CD pipeline passes
|
||||
|
||||
## Validation Commands
|
||||
|
||||
```bash
|
||||
npm run lint # ESLint
|
||||
npm run type-check # TypeScript
|
||||
npm test # All tests
|
||||
npm test -- --coverage # Coverage report
|
||||
```
|
||||
|
||||
## Sprint Workflow
|
||||
|
||||
Gatekeeper for `status/review` -> `status/done`:
|
||||
1. Check issues with `status/review`
|
||||
2. Run complete validation suite
|
||||
3. Apply RULE 0/1/2 review
|
||||
4. If ALL pass: Approve PR, move to `status/done`
|
||||
5. If ANY fail: Comment with specific failures, block
|
||||
|
||||
## Output Format
|
||||
|
||||
**Pass**:
|
||||
```
|
||||
QUALITY VALIDATION: PASS
|
||||
- Tests: {count} passing
|
||||
- Linting: Clean
|
||||
- Type check: Clean
|
||||
- Coverage: {%}
|
||||
- Mobile/Desktop: Validated
|
||||
STATUS: APPROVED
|
||||
```
|
||||
|
||||
**Fail**:
|
||||
```
|
||||
QUALITY VALIDATION: FAIL
|
||||
BLOCKING ISSUES:
|
||||
- {specific issue with location}
|
||||
REQUIRED: Fix issues and re-validate
|
||||
STATUS: NOT APPROVED
|
||||
```
|
||||
|
||||
## References
|
||||
|
||||
| Doc | When |
|
||||
|-----|------|
|
||||
| `.claude/role-agents/quality-reviewer.md` | RULE 0/1/2 definitions |
|
||||
| `.ai/workflow-contract.json` | Sprint process |
|
||||
| `docs/TESTING.md` | Testing strategies |
|
||||
Reference in New Issue
Block a user