create-issue
Create a comprehensive, well-structured GitHub issue with embedded agent instructions for autonomous PR lifecycle management.
Load relevant knowledge base facts into context before starting work
$ npx -y skills add dsifry/metaswarm --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/primeContext preview
What this command does when you run it.
Load relevant knowledge base facts into context before starting work
description: Load relevant knowledge base facts into context before starting work
**CRITICAL**: Run this command at the START of any investigation, planning, or implementation work to load relevant knowledge into your context.
This command queries the BEADS knowledge base for facts relevant to your current context and injects them into the conversation, ensuring you:
1. Follow established patterns and rules 2. Avoid known gotchas and pitfalls 3. Make decisions aligned with architectural choices 4. Don't repeat mistakes that have been learned from
For general context with automatic detection:
bd prime
When working on specific files:
bd prime --files "src/lib/services/**/*.ts" "src/api/routes/**/*.ts"
When working on a specific topic:
bd prime --keywords "authentication" "jwt" "security"
When doing a specific type of work:
bd prime --work-type planning bd prime --work-type implementation bd prime --work-type review bd prime --work-type debugging
When resuming after context compaction or in a new session:
bd prime --work-type recovery
This loads active plan, project context, execution state, and relevant knowledge base facts. See "Context Recovery" section below.
bd prime \ --files "src/lib/services/ai-*.ts" \ --keywords "ai" "provider" "openai" \ --work-type implementation
Non-negotiable rules containing NEVER/ALWAYS/MUST:
Known issues to avoid:
Established patterns in this codebase:
Team/architectural decisions:
External API quirks:
The BEADS system should auto-prime in these scenarios:
1. **Session Start**: When `.beads/` directory is detected 2. **File Touch**: When reading/editing files that match knowledge patterns 3. **Keyword Detection**: When task description matches known topics
Before writing a plan, run:
bd prime --work-type planning --keywords "<task-keywords>"
Before writing code, run:
bd prime --files "<files-to-touch>" --work-type implementation
Before reviewing code, run:
bd prime --work-type review --files "<files-changed>"
If you need to check for specific knowledge:
# Search for specific topic
cat .beads/knowledge/*.jsonl | jq -r 'select(.fact | test("authentication"; "i")) | .fact'
# Get all gotchas
cat .beads/knowledge/gotchas.jsonl | jq -r '.fact'
# Get all patterns
cat .beads/knowledge/patterns.jsonl | jq -r '.fact'The prime command outputs formatted knowledge that looks like:
# Relevant Knowledge Base Facts _25 facts loaded for this context_ ## MUST FOLLOW (Critical Rules) These are non-negotiable rules: - **[pattern]** NEVER use `as any` type casting... - **[security]** Always validate JWT tokens server-side... ## GOTCHAS (Common Pitfalls) Avoid these known issues: - **[gotcha]** Truthy check fails for explicit zero values... ## PATTERNS (Best Practices) - **[pattern]** Use mock factories from test utilities...
When `--work-type recovery` is used (or when an orchestrator detects it lost context), the prime command loads additional context beyond the standard knowledge base:
1. **Active Plan** — reads `.beads/plans/active-plan.md` if it exists with `status: in-progress` 2. **Project Context** — reads `.beads/context/project-context.md` (completed work units, established patterns, tooling) 3. **Execution State** — reads `.beads/context/execution-state.md` (current work unit, phase, retry count) 4. **Standard Knowledge** — all the usual MUST FOLLOW, GOTCHAS, PATTERNS, DECISIONS facts
# 1. Check for active execution if [ -f .beads/plans/active-plan.md ]; then grep -q 'status: in-progress' .beads/plans/active-plan.md && echo "ACTIVE PLAN FOUND" fi # 2. Load all context files cat .beads/plans/active-plan.md # The approved plan cat .beads/context/project-context.md # Completed work, patterns cat .beads/context/execution-state.md # Where we left off # 3. Load relevant knowledge base facts cat .beads/knowledge/*.jsonl | jq -r '.fact'
# Context Recovery _Recovered from BEADS persisted state_ ## Active Plan <plan summary — title, work unit count, current position> ## Execution State - Current work unit: WU-<id> (<title>) - Phase: <IMPLEMENT|VALIDATE|REVIEW|COMMIT> - Completed: <N> of <total> work units ## Project Context <tooling, completed work units, establ
A self-improving multi-agent orchestration framework for Claude Code, Gemini CLI, and Codex CLI.
Create a comprehensive, well-structured GitHub issue with embedded agent instructions for autonomous PR lifecycle management.
Check the status of external AI tools (Codex CLI, Gemini CLI) and their configuration.
Handle review comments on pull requests with appropriate responses and resolutions.
Analyze the session and write a self-contained handoff document so a fresh agent can resume the work — outputs a single "Read…
Monitor a PR through to merge - handles CI failures, reviews, and thread resolution
Run the design review gate on a design document to get feedback from Product Manager, Architect, Designer, Security Design, and…