spec-load
Spec Load
Usage
$spec-load
$spec-load "--category execution"
$spec-load "authentication"
$spec-load "--category debug error handling"
Flags: --category <type> filters by spec category. Optional keyword searches within loaded files.
Implementation
Step 1: Validate Specs Directory
test -d .workflow/specs || exit 1 # E001: not initialized
Step 2: Parse Arguments
Extract optional --category flag and keyword from arguments.
Category-to-file mapping:
| Category | Files Loaded |
|---|---|
general |
learnings.md |
planning |
architecture-constraints.md |
execution |
coding-conventions.md, quality-rules.md |
debug |
debug-notes.md |
test |
test-conventions.md |
review |
review-standards.md |
validation |
validation-rules.md |
all (default) |
All spec files |
Step 3: Load Files
Read the spec files matching the category filter. If no files exist for the category, fall back to loading all specs.
Step 4: Apply Keyword Filter
If a keyword is provided, search within loaded files for matching sections using grep. Return only matching sections with file:line references. If no matches found, show all content in the category (W001).
Step 5: Display Results
=== SPECS: {category} ===
{For each file}
--- {filename} ---
{content or matching sections}
Error Handling
| Code | Severity | Description |
|---|---|---|
| E001 | fatal | .workflow/specs/ not initialized -- run Skill({ skill: "spec-setup" }) first |
| W001 | warning | No matching specs for keyword -- showing all in category |
More from catlog22/maestro-flow
spec-map
Analyze codebase with 4 parallel mapper agents via CSV wave pipeline. Produces .workflow/codebase/ documents for tech-stack, architecture, features, and cross-cutting concerns.
1manage-codebase-rebuild
Full codebase documentation rebuild via CSV wave pipeline. Spawns 5 parallel doc generator agents to scan project and produce complete .workflow/codebase/ documentation set. Replaces manage-codebase-rebuild command.
1maestro-quick
Fast-track single task execution with workflow guarantees — analyze, plan, execute in one pass
1quality-sync
Sync codebase docs after code changes -- traces git diff through component/feature/requirement layers
1maestro-roadmap
Lightweight roadmap generation via 2-wave CSV pipeline. Wave 1 runs parallel requirement analysis agents (scope, risk, dependency). Wave 2 runs roadmap assembly agent producing roadmap.md with phases, milestones, and success criteria. Replaces maestro-roadmap command.
1manage-memory
Manage memory entries across workflow and system stores (list, search, view, edit, delete, prune)
1