@codename_inc/spectre 3.7.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -7
- package/package.json +3 -2
- package/plugins/spectre/.claude-plugin/plugin.json +1 -1
- package/plugins/spectre/bin/spectre-register +5 -0
- package/plugins/spectre/hooks/hooks.json +3 -14
- package/plugins/spectre/hooks/scripts/bootstrap.mjs +98 -0
- package/plugins/spectre/hooks/scripts/handoff-resume.mjs +404 -0
- package/plugins/spectre/hooks/scripts/lib.mjs +82 -0
- package/plugins/spectre/hooks/scripts/load-knowledge.mjs +189 -0
- package/plugins/spectre/hooks/scripts/register_learning.mjs +264 -0
- package/plugins/spectre/hooks/scripts/{test_bootstrap.cjs → test_bootstrap.mjs} +12 -7
- package/plugins/spectre/hooks/scripts/{test_handoff-resume.cjs → test_handoff-resume.mjs} +13 -11
- package/plugins/spectre/hooks/scripts/{test_load-knowledge.cjs → test_load-knowledge.mjs} +103 -22
- package/plugins/spectre/hooks/scripts/test_register-learning.mjs +335 -0
- package/plugins/spectre/skills/apply/SKILL.md +87 -0
- package/plugins/spectre/{commands/architecture_review.md → skills/architecture_review/SKILL.md} +9 -0
- package/plugins/spectre/{commands/clean.md → skills/clean/SKILL.md} +9 -0
- package/plugins/spectre/{commands/code_review.md → skills/code_review/SKILL.md} +9 -0
- package/plugins/spectre/{commands/create_plan.md → skills/create_plan/SKILL.md} +9 -0
- package/plugins/spectre/{commands/create_tasks.md → skills/create_tasks/SKILL.md} +9 -0
- package/plugins/spectre/{commands/create_test_guide.md → skills/create_test_guide/SKILL.md} +9 -0
- package/plugins/spectre/{commands/evaluate.md → skills/evaluate/SKILL.md} +11 -2
- package/plugins/spectre/{commands/execute.md → skills/execute/SKILL.md} +12 -3
- package/plugins/spectre/{commands/fix.md → skills/fix/SKILL.md} +9 -0
- package/plugins/spectre/{commands/forget.md → skills/forget/SKILL.md} +9 -0
- package/plugins/spectre/skills/{spectre-guide → guide}/SKILL.md +6 -5
- package/plugins/spectre/{commands/handoff.md → skills/handoff/SKILL.md} +9 -0
- package/plugins/spectre/{commands/kickoff.md → skills/kickoff/SKILL.md} +9 -0
- package/plugins/spectre/skills/{spectre-learn → learn}/SKILL.md +19 -59
- package/plugins/spectre/skills/learn/references/recall-template.md +34 -0
- package/plugins/spectre/{commands/plan.md → skills/plan/SKILL.md} +66 -25
- package/plugins/spectre/{commands/plan_review.md → skills/plan_review/SKILL.md} +9 -0
- package/plugins/spectre/skills/prototype/SKILL.md +314 -0
- package/plugins/spectre/{commands/quick_dev.md → skills/quick_dev/SKILL.md} +9 -0
- package/plugins/spectre/{commands/rebase.md → skills/rebase/SKILL.md} +9 -0
- package/plugins/spectre/skills/recall/SKILL.md +17 -0
- package/plugins/spectre/{commands/research.md → skills/research/SKILL.md} +9 -0
- package/plugins/spectre/skills/scope/SKILL.md +174 -0
- package/plugins/spectre/{commands/ship.md → skills/ship/SKILL.md} +9 -0
- package/plugins/spectre/{commands/sweep.md → skills/sweep/SKILL.md} +9 -0
- package/plugins/spectre/skills/tdd/SKILL.md +111 -0
- package/plugins/spectre/{commands/test.md → skills/test/SKILL.md} +9 -0
- package/plugins/spectre/skills/ux/SKILL.md +121 -0
- package/plugins/spectre/{commands/validate.md → skills/validate/SKILL.md} +9 -0
- package/plugins/spectre-codex/agents/analyst.toml +117 -0
- package/plugins/spectre-codex/agents/dev.toml +65 -0
- package/plugins/spectre-codex/agents/finder.toml +101 -0
- package/plugins/spectre-codex/agents/patterns.toml +203 -0
- package/plugins/spectre-codex/agents/reviewer.toml +123 -0
- package/plugins/spectre-codex/agents/sync.toml +146 -0
- package/plugins/spectre-codex/agents/tester.toml +205 -0
- package/plugins/spectre-codex/agents/web-research.toml +104 -0
- package/plugins/spectre-codex/hooks/hooks.json +23 -0
- package/plugins/{spectre/hooks/scripts/bootstrap.cjs → spectre-codex/hooks/scripts/bootstrap.mjs} +15 -16
- package/plugins/{spectre/hooks/scripts/handoff-resume.cjs → spectre-codex/hooks/scripts/handoff-resume.mjs} +21 -27
- package/plugins/{spectre/hooks/scripts/lib.cjs → spectre-codex/hooks/scripts/lib.mjs} +3 -4
- package/plugins/spectre-codex/hooks/scripts/load-knowledge.mjs +189 -0
- package/plugins/spectre-codex/hooks/scripts/register_learning.mjs +264 -0
- package/plugins/spectre-codex/skills/apply/SKILL.md +87 -0
- package/plugins/spectre-codex/skills/architecture_review/SKILL.md +129 -0
- package/plugins/spectre-codex/skills/clean/SKILL.md +322 -0
- package/plugins/spectre-codex/skills/code_review/SKILL.md +417 -0
- package/plugins/spectre-codex/skills/create_plan/SKILL.md +126 -0
- package/plugins/spectre-codex/skills/create_tasks/SKILL.md +383 -0
- package/plugins/spectre-codex/skills/create_test_guide/SKILL.md +129 -0
- package/plugins/spectre-codex/skills/evaluate/SKILL.md +59 -0
- package/plugins/spectre-codex/skills/execute/SKILL.md +96 -0
- package/plugins/spectre-codex/skills/fix/SKILL.md +70 -0
- package/plugins/spectre-codex/skills/forget/SKILL.md +67 -0
- package/plugins/spectre-codex/skills/guide/SKILL.md +359 -0
- package/plugins/spectre-codex/skills/handoff/SKILL.md +170 -0
- package/plugins/spectre-codex/skills/kickoff/SKILL.md +124 -0
- package/plugins/spectre-codex/skills/learn/SKILL.md +595 -0
- package/plugins/{spectre/skills/spectre-learn → spectre-codex/skills/learn}/references/recall-template.md +4 -1
- package/plugins/spectre-codex/skills/plan/SKILL.md +211 -0
- package/plugins/spectre-codex/skills/plan_review/SKILL.md +42 -0
- package/plugins/spectre-codex/skills/prototype/SKILL.md +314 -0
- package/plugins/spectre-codex/skills/quick_dev/SKILL.md +110 -0
- package/plugins/spectre-codex/skills/rebase/SKILL.md +82 -0
- package/plugins/spectre-codex/skills/recall/SKILL.md +17 -0
- package/plugins/spectre-codex/skills/research/SKILL.md +168 -0
- package/plugins/spectre-codex/skills/scope/SKILL.md +174 -0
- package/plugins/spectre-codex/skills/ship/SKILL.md +181 -0
- package/plugins/spectre-codex/skills/sweep/SKILL.md +91 -0
- package/plugins/{spectre/skills/spectre-tdd → spectre-codex/skills/tdd}/SKILL.md +1 -1
- package/plugins/spectre-codex/skills/test/SKILL.md +389 -0
- package/plugins/spectre-codex/skills/ux/SKILL.md +121 -0
- package/plugins/spectre-codex/skills/validate/SKILL.md +352 -0
- package/src/config.test.js +6 -5
- package/src/install.test.js +100 -11
- package/src/lib/config.js +107 -54
- package/src/lib/constants.js +17 -23
- package/src/lib/doctor.js +19 -22
- package/src/lib/install.js +98 -313
- package/src/lib/knowledge.js +7 -37
- package/src/lib/paths.js +0 -12
- package/src/pack.test.js +87 -0
- package/plugins/spectre/commands/learn.md +0 -15
- package/plugins/spectre/commands/recall.md +0 -5
- package/plugins/spectre/commands/scope.md +0 -119
- package/plugins/spectre/commands/ux_spec.md +0 -91
- package/plugins/spectre/hooks/scripts/load-knowledge.cjs +0 -120
- package/plugins/spectre/hooks/scripts/precompact-warning.cjs +0 -19
- package/plugins/spectre/hooks/scripts/register_learning.cjs +0 -144
- package/plugins/spectre/hooks/scripts/test_register-learning.cjs +0 -146
- package/plugins/spectre/skills/spectre-apply/SKILL.md +0 -189
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "kickoff"
|
|
3
|
+
description: "👻 | Project kickoff with deep research & MVP pathfinding - primary agent"
|
|
4
|
+
user-invocable: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# kickoff
|
|
8
|
+
|
|
9
|
+
## Input Handling
|
|
10
|
+
|
|
11
|
+
Treat the current command arguments as this workflow's input. When invoked from a slash command, use the forwarded `$ARGUMENTS` value.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# kickoff: Deep Codebase Research + MVP Path Discovery
|
|
15
|
+
|
|
16
|
+
Comprehensive codebase research, external best practices, and MVP implementation path with file:line evidence. Output: kickoff document with architecture insights, gap analysis, and implementation options saved to `docs/tasks/{task_name}/kickoff/`.
|
|
17
|
+
|
|
18
|
+
## ARGUMENTS
|
|
19
|
+
|
|
20
|
+
<ARGUMENTS>
|
|
21
|
+
$ARGUMENTS
|
|
22
|
+
</ARGUMENTS>
|
|
23
|
+
|
|
24
|
+
## Step 1: Acknowledge & Clarify
|
|
25
|
+
|
|
26
|
+
- **Action** — ImmediateReply: Respond before any tools.
|
|
27
|
+
- **If** ARGUMENTS → acknowledge context, identify: what we're exploring, what decision we're heading toward, what success looks like
|
|
28
|
+
- **Else** → prompt for project context
|
|
29
|
+
- **CRITICAL**: No tool calls in this step
|
|
30
|
+
|
|
31
|
+
## Step 2: Gather Context & Decompose
|
|
32
|
+
|
|
33
|
+
- **Action** — ReadMentionedDocs: Read referenced docs FULLY in main context (not subagent). Extract: vision, constraints, decisions made, open questions.
|
|
34
|
+
- **Action** — DecomposeResearchAreas: Break project into research areas. Consider: components to investigate, directories/files, architectural patterns, data flows, existing code to extend.
|
|
35
|
+
- **Action** — CreateResearchPlan: Use TodoWrite to track research subtasks.
|
|
36
|
+
|
|
37
|
+
## Step 3: Deep Parallel Research
|
|
38
|
+
|
|
39
|
+
- **Action** — SpawnResearchAgents: Launch parallel agents for comprehensive context.
|
|
40
|
+
|
|
41
|
+
| Agent | Task | Required Output |
|
|
42
|
+
|-------|------|-----------------|
|
|
43
|
+
| @finder | Find relevant files, entry points, handlers, models | File paths by domain |
|
|
44
|
+
| @analyst | Trace data flow, dependencies, behavior, edge cases | file:line refs for ALL findings |
|
|
45
|
+
| @patterns | Find similar implementations, patterns to follow/avoid | Code examples with file:line |
|
|
46
|
+
| @web-research | Best practices, similar solutions, pitfalls | Findings WITH LINKS |
|
|
47
|
+
|
|
48
|
+
**Strategy**: locator → analyzer on findings → parallel for breadth. Spawn follow-ups if shallow. Demand file:line evidence.
|
|
49
|
+
|
|
50
|
+
**3rd Party Libs**: Use Context7 MCP for central libraries.
|
|
51
|
+
|
|
52
|
+
- **Action** — WaitForAgents: ALL agents must complete before synthesis. Update TodoWrite as each completes.
|
|
53
|
+
|
|
54
|
+
## Step 4: Synthesize Understanding
|
|
55
|
+
|
|
56
|
+
- **Action** — CompileFindings: Synthesize with file:line refs throughout.
|
|
57
|
+
- Codebase: Connect findings across components, document data flow, answer "how does codebase handle [area]?"
|
|
58
|
+
- Architecture: Patterns to follow (with examples), conventions, constraints, reuse vs build new
|
|
59
|
+
- External: Industry patterns (with links), best practices, pitfalls
|
|
60
|
+
|
|
61
|
+
- **Action** — PerformGapAnalysis: Current capabilities (with file refs) vs required capabilities. What's missing vs needs modification.
|
|
62
|
+
|
|
63
|
+
- **Action** — IdentifyMVPAndOptions:
|
|
64
|
+
- MVP: Core value, minimum for value, what to defer (informed by codebase complexity)
|
|
65
|
+
- Options: 2-3 approaches with: summary, key decisions, code to leverage (file refs), new work, effort sense, trade-offs
|
|
66
|
+
- Decision points: Architecture, scope, technology, integration, patterns
|
|
67
|
+
|
|
68
|
+
## Step 5: Generate Document
|
|
69
|
+
|
|
70
|
+
- **Action** — DetermineOutputDir:
|
|
71
|
+
- Derive `task_name` from context (kebab-case)
|
|
72
|
+
- `OUT_DIR = user_specified || docs/tasks/{task_name}/kickoff`
|
|
73
|
+
- `mkdir -p "$OUT_DIR"`
|
|
74
|
+
|
|
75
|
+
- **Action** — CreateDocument: Structure with YAML frontmatter (date, git_commit, branch, repo, topic, tags, status).
|
|
76
|
+
|
|
77
|
+
**Sections**: Title → Metadata → Project Context → Research Summary → Detailed Codebase Findings (by area, file:line refs, code snippets) → Code References (table) → Architecture Insights (patterns, conventions, constraints) → External Research (with links) → Gap Analysis → MVP Suggestion → Implementation Options (2-3 with trade-offs) → Decision Points → Open Questions → Related Resources
|
|
78
|
+
|
|
79
|
+
- **Action** — AddGitHubPermalinks: If on main/pushed, convert file refs to `https://github.com/{owner}/{repo}/blob/{commit}/{file}#L{line}`
|
|
80
|
+
|
|
81
|
+
- **Action** — SaveDocument: Save as `{task_name}_kickoff.md` (timestamp variant if exists). **CRITICAL**: Save before Step 6.
|
|
82
|
+
|
|
83
|
+
## Step 6: Present & Scope
|
|
84
|
+
|
|
85
|
+
- **Action** — PresentSummary:
|
|
86
|
+
> **Kickoff Complete** — saved to `{path}`
|
|
87
|
+
>
|
|
88
|
+
> **Vision**: [1-2 sentences]
|
|
89
|
+
> **What Exists**: [key components with file:line refs]
|
|
90
|
+
> **Architecture Insights**: [patterns, conventions, constraints]
|
|
91
|
+
> **External Learnings**: [key insights with links]
|
|
92
|
+
> **Gap**: [have → need]
|
|
93
|
+
> **MVP Path**: [smallest valuable slice]
|
|
94
|
+
>
|
|
95
|
+
> **Scoping Questions** (before planning):
|
|
96
|
+
> 1. [Scope/boundary question] — Option A (leverages `code:line`) vs Option B
|
|
97
|
+
> 2. [Technical approach] — suggested vs alternative
|
|
98
|
+
> 3. [Priority/constraint question]
|
|
99
|
+
|
|
100
|
+
- **Action** — EngageInScoping: Wait for response, ask follow-ups. No planning until ambiguities resolved. Research answerable questions instead of asking.
|
|
101
|
+
|
|
102
|
+
## Step 7: Handle Follow-ups
|
|
103
|
+
|
|
104
|
+
- **Action** — HandleFollowUps:
|
|
105
|
+
- **If** clarifications → update doc with `## Scoping Clarifications [timestamp]`
|
|
106
|
+
- **If** more research needed → spawn agents, demand file:line evidence, update doc
|
|
107
|
+
- Continue until ambiguities resolved
|
|
108
|
+
|
|
109
|
+
## Step 8: Transition to Scope
|
|
110
|
+
|
|
111
|
+
- **Action** — SummarizeAndTransition:
|
|
112
|
+
> **Ready for Scope Definition**
|
|
113
|
+
>
|
|
114
|
+
> **Established**: User problem, user value, key findings (file:line), decisions made, remaining ambiguities
|
|
115
|
+
>
|
|
116
|
+
> **Options**:
|
|
117
|
+
> 1. "Proceed with scope" → `scope` with FROM_KICKOFF=true, SKIP_EXPLORATION=true
|
|
118
|
+
> 2. "Skip to planning" → `plan` with kickoff doc context
|
|
119
|
+
> 3. "Need to think" → `handoff`
|
|
120
|
+
|
|
121
|
+
- **Action** — ExecuteChoice:
|
|
122
|
+
- **If** scope → invoke `scope` with: FROM_KICKOFF=true, KICKOFF_DOC={path}, SKIP_EXPLORATION=true, context summary
|
|
123
|
+
- **If** planning → suggest `plan`
|
|
124
|
+
- **If** pause → run `handoff`
|