mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
a1d7792bdb
Signed-off-by: phernandez <paul@basicmachines.co> Signed-off-by: Paul Hernandez <60959+phernandez@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Drew Cain <groksrc@users.noreply.github.com>
2.9 KiB
2.9 KiB
title, type, permalink, tags
| title | type | permalink | tags | |||
|---|---|---|---|---|---|---|
| SPEC-2: Slash Commands Reference | spec | specs/spec-2-slash-commands-reference |
|
SPEC-2: Slash Commands Reference
This document defines the slash commands used in our specification-driven development process.
/spec create [name]
Purpose: Create a new specification document
Usage: /spec create notes-decomposition
Process:
- Create new spec document in
/specsfolder - Use SPEC-XXX numbering format (auto-increment)
- Include standard spec template:
- Why (reasoning/problem)
- What (affected areas)
- How (high-level approach)
- How to Evaluate (testing/validation)
- Tag appropriately for knowledge graph
- Link to related specs/components
Template:
# SPEC-XXX: [Title]
## Why
[Problem statement and reasoning]
## What
[What is affected or changed]
## How (High Level)
[Approach to implementation]
## How to Evaluate
[Testing/validation procedure]
## Notes
[Additional context as needed]
/spec status
Purpose: Show current status of all specifications
Usage: /spec status
Process:
- Search all specs in
/specsfolder - Display table showing:
- Spec number and title
- Status (draft, approved, implementing, complete)
- Assigned agent (if any)
- Last updated
- Dependencies
/spec implement [name]
Purpose: Hand specification to appropriate agent for implementation
Usage: /spec implement SPEC-002
Process:
- Read the specified spec
- Analyze requirements to determine appropriate agent:
- Frontend components → vue-developer
- Architecture/system design → system-architect
- Backend/API → python-developer
- Launch agent with spec context
- Agent creates implementation plan
- Update spec with implementation status
/spec review [name]
Purpose: Review implementation against specification criteria
Usage: /spec review SPEC-002
Process:
- Read original spec and "How to Evaluate" section
- Examine current implementation
- Test against success criteria
- Document gaps or issues
- Update spec with review results
- Recommend next actions (complete, revise, iterate)
Command Extensions
As the process evolves, we may add:
/spec link [spec1] [spec2]- Create dependency links/spec archive [name]- Archive completed specs/spec template [type]- Create spec from template/spec search [query]- Search spec content
References
- Claude Slash commands: https://docs.anthropic.com/en/docs/claude-code/slash-commands
Creating a command
Commands are implemented as Claude slash commands:
Location in repo: .claude/commands/
In the following example, we create the /optimize command:
# Create a project command
mkdir -p .claude/commands
echo "Analyze this code for performance issues and suggest optimizations:" > .claude/commands/optimize.md