Interactive wizard to create context packets for agent tasks
Guides an interactive wizard to build structured context packets that improve agent task outcomes.
/plugin marketplace add kylesnowschwartz/SimpleClaude/plugin install sc-extras@simpleclaude[optional: title or short description of the work]Structured workflow to create context packets that dramatically improve agent outcomes.
A context packet is a tight, structured artifact that makes implicit requirements explicit before any coding starts. Based on Where Good Ideas Come From (for Coding Agents), context packets transform vague requests into agent-compatible specifications.
The key insight: "Agents make code cheaper. They do not make judgment cheap." The scarce skill is expressing constraints, designing verification, and maintaining feedback loops—not keystrokes.
These require explicit user-input - the user knows these better than any agent can discover:
Use AskUserQuestion to prompt:
Use AskUserQuestion to prompt:
Use AskUserQuestion to prompt:
Use AskUserQuestion to prompt:
Leverage agents for codebase exploration:
Use AskUserQuestion with two options:
Find 3-10 key files that define the truth for: ${goal}
Look for:
- Core domain models/entities
- Primary API endpoints or controllers
- Key configuration files
- Main business logic files
- Critical integration points
Return a ranked list with brief explanations of why each file is a truth anchor.
Use AskUserQuestion with two options:
Find existing patterns related to: ${goal}
Search for:
- Similar features or functionality
- Comparable error handling patterns
- Related test structures
- Analogous validation logic
- Existing integrations we should mirror
Return specific file paths and pattern descriptions that should be reused.
Use AskUserQuestion to prompt:
Use AskUserQuestion to prompt:
Example 1 (Happy path):
Input: [specific input]
Output: [expected result]
Example 2 (Edge case):
Input: [boundary condition]
Output: [expected behavior]
Example 3 (Failure case):
Input: [invalid input]
Output: [error handling]
Use AskUserQuestion to prompt:
Present this template and ask for customizations:
Default template:
## Agent Instructions
When implementing this work:
1. **Keep diffs small**: Aim for focused, reviewable changes
2. **Cite patterns**: Reference prior art from repo anchors explicitly
3. **Run tests frequently**: Execute oracle checks after each meaningful change
4. **Fail fast**: If assumptions break, stop and ask rather than guessing
5. **Document why**: Comments explain reasoning, not mechanics
6. **Preserve constraints**: Never violate stated constraints without explicit approval
Use AskUserQuestion:
Location: .agent-history/context-packet-YYYYMMDD.md or .agent-history/context-packet-git-branch.md if on a named branch
Format:
# Context Packet: [Goal - Short Title]
Created: YYYY-MM-DD
## Goal
[1 sentence from Phase 1]
## Non-Goals
[Bulleted list from Phase 1]
## Constraints
[Bulleted list from Phase 1]
## Authority Order
[Hierarchy from Phase 1]
## Repo Anchors
[3-10 files from Phase 2, with brief descriptions]
## Prior Art
[Patterns to reuse from Phase 2, with file references]
## Oracle
[Success criteria from Phase 3]
## Examples
[2-3 input→output cases from Phase 3]
## Risk and Rollout
[Failure modes and deployment strategy from Phase 3]
## Agent Instructions
[Procedural guardrails from Phase 4]
---
_This context packet should be referenced at the start of agent sessions working on this goal. Include it with: `@.agent-history/context-packet-YYYYMMDD.md`_
After generating the file, output:
✓ Context packet created: .agent-history/context-packet-[timestamp].md
To use this context packet in your next agent session:
1. Reference it in your prompt: @.agent-history/context-packet-[timestamp].md
2. Or invoke a command with context: /sc-work @.agent-history/context-packet-[timestamp].md
The context packet pins your objectives and installs success criteria before any coding starts.
When spawning Explore agents for discovery:
haiku for fast discovery tasks (specified in frontmatter: model: opus for main command, agents can use faster models).agent-history/ if it doesn't exist: mkdir -p .agent-history/YYYYMMDD and optional -HHMMSS for sortable, unique filenamesContext packets aren't write-once artifacts:
Remember: The goal is to make implicit requirements explicit. If you're unsure about constraints or success criteria, that's exactly why you need a context packet. The wizard helps surface those uncertainties before they become bugs.
${ARGUMENTS}