
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
@codename_inc/spectre
Advanced tools
**S**cope → **P**lan → **E**xecute → **C**lean → **T**est → **R**ebase → **E**valuate
Scope → Plan → Execute → Clean → Test → Rebase → Evaluate
SPECTRE is a slash command based workflow for Claude Code designed to help you do ONE THING more, faster, and with higher quality.
🚀 Ship Product Features
SPECTRE's workflow covers the complete software development lifecycle - from scoping a feature, finalizing user flows, writing the technical design, generating tasks, executing the tasks, code review, validating the work, cleaning up and testing the work, and finally generating documentation as Skills your agent auto-loads when relevant.
It has been tested on brand new codebases and codebases with hundreds of thousands of lines of code. Its been tested building websites, react native apps, native desktop apps, and personal software.
SPECTRE helps you get higher quality and more consistent results from your coding agent, while they work autonomously for much longer, so 10-100x'ing your typical output feels easy and more importantly, repeatable.

# Add marketplace and install
/plugin marketplace add Codename-Inc/spectre
/plugin install spectre@codename
Then start building:
/spectre:scope
That's it. You just start with 1 command to build features.
npx @codename_inc/spectre install codex
When prompted, choose project to install into the current repo's .codex, or user to install into ~/.codex.
If you choose project, run codex from that repo.
If you choose user, restart or open your normal Codex session.
Then run a Spectre command such as:
scope
Current Codex behavior:
user scope installs Spectre workflow skills, runtime, agents, hooks, and shared skills under ~/.codexproject scope installs the same Codex home structure inside ./.codex.spectre/manifest.json and project-local Codex configAGENTS.override.md block.agents/skills/ and are synced into Codex configCapability matrix: docs/codex-capability-matrix.md
Session continuity deep dive: docs/codex-sessionstart-memory.md

run one of the kickoff prompts in Claude Code - /spectre:scope is the main command for building new features, but also /spectre:kickoff for high ambiguity new features (includes web research), /spectre:research for codebase research "how might we build …” style Qs, or /spectre:ux to define user flows, components, and layout for a new feature.
follow the prompts/instructions to create the related canonical document and Claude Code will suggest the next step in the SPECTRE workflow automatically (e.g., going from scope to plan to tasks and so on)
turn off auto-compact in Claude Code settings (/config) and run /spectre:handoff when the context window is getting full, then run /clear to start the next session. (/spectre:forget when you are switching gears)
SPECTRE saves canonical docs to a docs/tasks/{topic}/specs directory, and status updates from /spectre:handoff to docs/tasks/{topic}/session_logs directory. We recommend keeping this directory checked into git to be able to reference docs in the future.
thats it. scope features, plan features, build features, clean up/test features, document features, learn from features, repeat.
AI coding is changing product development, but why is it that Claude Code can still go off the rails? Why is it that some developers claim AI has 100x'd their output, while others still complain about the quality of the code it generates?
Let me introduce you to a very simple concept that you need to drill into your head. With coding agents:
💀 AMBIGUITY IS DEATH.
When the scope, ux, and plan are ambiguous, you must rely on the LLM to fill in the blanks. And while sometimes you can get lucky - especially for smaller features - for any real technology or product work, ambiguity is how you end up with spaghetti code, conflicts, and AI slop.
LLMs need specificity. And typically, providing the right level of specificity is a lot of work. Just think about the most detailed spec or technical design you’ve ever written. Takes days and sometimes weeks.
BUT --- you can use LLMs to make it EASY to provide that specificity. And that is exactly what SPECTRE does.
Prompt based workflows that generate canonical docs that you and your Agents are aligned on are how you get the best, highest quality, and most consistent results from AI Coding Agents.
They provide the necessary context, detail, and structure for the agent to ask the right questions, investigate the right details, and generate the right requirements, plans, tasks, code, tests, and more.
The better your prompt based workflows, the lower the ambiguity, the more AI can take on, the longer AI can work autonomously, the more easily you can multi-task, and suddenly you are 100x'ing your output.
As a former PM I've lived the value of Canonical Docs (shout out Naomi Gleit). The reasons they work for Humans are the same reasons they work with AI Agents (see 💀 Ambiguity is Death)
In SPECTRE, the structured workflows generate some combination of the following canonical docs stored in docs/tasks/{topic/feature}/specs
scope.md - what are we building and importantly what are we NOT buildingux.md - the core user flows and components/layouts/interactionsplan.md - high level technical design and phasingtasks.md - specific parent & sub-tasks to executecode_review.md - prioritized code review feedbackgaps.md - task list of gaps identified from validation.claude/skills/{feature_name}/skill.md - a skill for agents to auto-reference the workNot all are required. Sometimes I have scope.md and then use Claude Code's plan mode. Sometimes I have a ux.md and a tasks.md. The key thing to remember is that docs are the context in context engineering.
Yeah basically Rapid Waterfall.
Specificity up front forces clarity, reduces ambiguity, and leads to better 1st pass results.
THEN -- you can iterate on the feature set, ux, architecture, etc. at lightning speed. AI coding agents are 10x better at working around working existing code. It's why they are so good at refactors. Because they are working with a working established baseline.
Workflows make it easier and faster to get to working code.
From there, you can iterate and adapt before you ship.
SPECTRE is the result of over 12 months of daily Claude Code use.
These are the actual prompts I use and iterate upon non stop every day to build products.
With SPECTRE, I built a React Native based AI Agent + GPS Rangefinder for Golfers (New June (in closed Alpha)) and a 250k line Tauri/Rust/React desktop application called Subspace (in open Beta - https://www.subspace.build).
I created SPECTRE because I wanted:
a repeatable daily driver workflow that works on brand new projects, and large existing codebases.
a single workflow that works on both small & big features without being overwhelmed with process
a workflow that delivers robust engineering plans when needed, or a concise set of tasks if not
hands on planning but hands off execution
higher quality INPUT with LESS WORK so i can ensure the outputs are more aligned with my vision
a workflow that lets Agents learn my codebase, features, patterns, bugs, so I don't have to remember everything
stupid. simple. memory. agent sessions are aware of the ongoing thread of work (/spectre:handoff)
I improve these prompts daily, and I didn't just prompt Claude Code to generate these prompts. I iterated over many months, adjusting the prompts based on both the user experience of using them, and the quality of results that I got.
For example:
SPECTRE made products like New June and Subspace possible, and it is making it possible for me, an ex-Meta, ex-Amazon Technical Product Manager to build, ship, and iterate on products 100x the complexity of anything I've ever built in the past.
If you start with /scope, your agent will guide you through the rest of the steps automatically.
| Phase | Command | What It Does |
|---|---|---|
| Scope | /spectre:scope | Define requirements, constraints, success criteria |
| Plan | /spectre:plan | Research codebase, create implementation plan |
| Execute | /spectre:execute | Parallel implementation with wave-based delivery |
| Clean | /spectre:clean | Remove dead code, lint, format |
| Test | /spectre:test | Risk-aware test coverage |
| Rebase | /spectre:rebase | Safe merge preparation with conflict handling |
| Evaluate | /spectre:evaluate | Architecture review + knowledge capture |
Each command ends with "Next Steps" suggestions, so you always know what prompt to run next — you don't have to remember what the prompts are, which is one thing that kills me about many other Spec Driven Development workflows.
You can use any of the commands in any sequence you want - they are good standalone too. More on my typical daily usage below.
SPECTRE maintains and accumulates context across sessions when you use the /spectre:handoff command. To get the most from SPECTRE's Session Memory, we recommend that you:
turn off auto-compact in Claude Code /config settings, and
run /spectre:handoff liberally when you are switching gears or the context window is getting north of 160k tokens.
When you run /spectre:handoff, a status report will get generated for that session, and automatically loaded into your context window for the next session. You'll see a nice summary of the status when you run /clear.
If you already had previous sessions, a subagent (@spectre:sync) will review the last 3 status updates and merge into a single continuous session memory.
Voila -- trailing 3 session memory snapshots.
If you want to start fresh — /spectre:forget archives the session_logs.
/spectre:handoff # Save progress before session ends
/spectre:forget # Clear memory for fresh start
The more I used SPECTRE and the faster I could build, the more frequently I found myself wanting to reference past work. Debugging sessions, a new architectural pattern, or how a feature works/was built.
SPECTRE Evaluate combines architecture review with knowledge capture — reviewing what you built and learning from it in one step.
/spectre:evaluate runs two things in parallel:
What is great about SPECTRE's learning system, is that Claude Code automatically loads skills that are relevant. We do this with a 'coercion' technique I borrowed from Jesse Vincent's great Superpowers skill.
SessionStart hook — every time you start a conversation, SPECTRE's hook reads your project's knowledge registry and injects it into context. Claude now knows what it knows before you type a single word.
Skill auto-loading — when your task matches a trigger word from the registry (e.g., you mention "auth" and there's a feature-auth-flows skill), Claude loads the full skill before searching the codebase. No wasted tool calls rediscovering what's already documented.
The result: knowledge compounds across sessions instead of resetting to zero. The more you learn, the faster and more accurate every future session becomes.
| Category | Example |
|---|---|
| Gotchas | "The websocket reconnect silently fails if..." |
| Decisions | "We chose SQLite over Postgres because..." |
| Features | Architecture dossiers — key files, flows, common tasks |
| Patterns | Reusable solutions established across the codebase |
| Procedures | Multi-step processes like deploy, release, migrate |
You can also run these independently:
/spectre:evaluate # Architecture review + learn (the full evaluate step)
/spectre:learn # Just capture knowledge from this session
/spectre:architecture_review # Just run the architecture review
/spectre:recall auth # Find and load existing knowledge about auth
SPECTRE dispatches specialized subagents for different tasks:
NOTE: You don't even need to know that these subagents exist. The prompts instruct Claude Code to call them automatically.
Although I do sometimes use @spectre:web-research for web research. It's like mini deep-research.
| Agent | Purpose |
|---|---|
@spectre:dev | Implementation with MVP focus |
@spectre:analyst | Understand how code works |
@spectre:finder | Find where code lives |
@spectre:patterns | Find reusable patterns |
@spectre:web-research | Web research |
@spectre:tester | Test automation |
@spectre:reviewer | Independent code review |
99.9% of my day is spent using SPECTRE exactly like this.
start /spectre:scope to get crisp on what's in/out. this is non-negotiable unless the feature is a one line ask.
/spectre:plan to build out a well researched technical design or set of tasks
then run /spectre:execute to use parallel subagents to work through the tasks. Execute is a meta prompt that also calls /spectre:code_review and /spectre:validate.
side note /spectre:validate is a killer prompt. It breaks down the original tasks and dispatches subagents to verify. find stuff missing all the time with this.
when initial execution is complete, i run another /spectre:handoff to get the context window clean for fixes/touch ups.
for low-complexity tasks where I trust the agent end-to-end, I use /spectre:ship. Brain dump what I want, walk away, and review the PR. It autonomously scopes, implements with TDD, sweeps, rebases, and opens a PR — zero confirmation gates.
From here — I do a bunch of manual testing and fixing.
I largely use Claude Code's built in /plan mode for fixes in this phase.
If there is a bug that can't easily be solved, i use the /spectre:fix prompt for a more structured debugging approach.
If something new comes up, or if the scope is not what I'd hoped, I run a new /scope cycle from within the project.
I liberally use /spectre:handoff here to keep context windows clean as I work through issues, and keep the sessions on track with the progress we're making.
During the process of manual testing/fixing, I typically accumulate uncommitted changes. /spectre:sweep will get your changes committed, while
Once wrapping up, /spectre:clean is a much deeper cleanup that dispatches subagents to find dead code, duplicates, verifies, lint, commits any stragglers, etc.
Then /spectre:test does deep analysis and dispatches subagents to write tests based on a risk-adjusted framework focusing on behavior not implementation details.
Once cleaned/tested — /spectre:rebase works great to rebase onto your parent branch, but obviously you do you with your release flow. From here I create PR/merge or directly merge depending on the task.
Finally, I run /spectre:evaluate to get an architecture review and capture any knowledge worth preserving — patterns, gotchas, decisions. This builds institutional memory that loads automatically in future sessions.
From here, merge/PR, address any PR comments, etc. and get the feature checked back in.
| Command | Description |
|---|---|
/spectre:scope | Interactive feature scoping |
/spectre:plan | Research codebase, create implementation plan |
/spectre:execute | Wave-based parallel execution with code review |
/spectre:clean | Code cleanup and quality gates |
/spectre:test | Risk-aware test coverage |
/spectre:rebase | Safe rebase with conflict handling |
/spectre:evaluate | Architecture review + knowledge capture |
| Command | Description |
|---|---|
/spectre:quick_dev | Scope + plan for small/medium tasks |
/spectre:ship | Autonomous end-to-end: brain dump → scope → TDD → rebase → PR |
| Command | Description |
|---|---|
/spectre:kickoff | Deep research for high-ambiguity features |
/spectre:research | Parallel codebase research |
| Command | Description |
|---|---|
/spectre:handoff | Save session state snapshot |
/spectre:forget | Clear memory, archive logs |
These are situational commands.
I use /spectre:fix for pretty much all bugs I run into.
| Command | Description |
|---|---|
/spectre:sweep | Light cleanup pass — lint, test, descriptive commits |
/spectre:learn | Capture knowledge for future sessions |
/spectre:ux | UX specification for UI-heavy features |
/spectre:fix | Investigate bugs & implement fixes |
spectre/
├── .claude-plugin/
│ └── marketplace.json # Marketplace registration
├── plugins/
│ └── spectre/
│ ├── .claude-plugin/
│ │ └── plugin.json # Plugin manifest
│ ├── agents/ # Subagent definitions
│ ├── hooks/ # Session memory hooks
│ └── skills/ # Slash workflows + knowledge skills
├── scripts/ # Release & utility scripts
└── CLAUDE.md
Skills update automatically when you update the plugin:
/plugin update spectre
MIT License - see LICENSE file for details
Issues: https://github.com/codename-inc/spectre/issues
Email: joe@bycodename.com
Socials:
FAQs
**S**cope → **P**lan → **E**xecute → **C**lean → **T**est → **R**ebase → **E**valuate
We found that @codename_inc/spectre demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.