claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
Defines the contract for deferred-item capture across plugins. Use when building or validating a plugin's deferred-capture wrapper or adding source labels.
$ npx -y skills add athola/claude-night-market --skill deferred-capture --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/deferred-captureContext preview
The summary Claude sees to decide when to auto-load this skill.
Defines the contract for deferred-item capture across plugins. Use when building or validating a plugin's deferred-capture wrapper or adding source labels.
name: deferred-capture description: Defines the contract for deferred-item capture across plugins. Use when building or validating a plugin's deferred-capture wrapper or adding source labels. alwaysApply: false model_hint: standard
wrapper directly, e.g. `plugins/<plugin>/scripts/deferred_capture.py`)
Specification that all plugin deferred-capture wrappers implement. Not a runtime dependency, just a convention.
Required arguments:
after `[Deferred]` prefix
scope-guard, feature-review, review, regression, egregore
Optional arguments:
`deferred` and source
`session_id` from the hook payload stdin (`jq -r '.session_id'`), fallback: UTC timestamp `YYYYMMDD-HHMMSS`
path to source artifact
Title: `[Deferred] <title>`
Labels: `deferred` and `<source>`
Body:
**Source:** <source> (session <session-id>) **Captured:** <YYYY-MM-DD> **Branch:** <current git branch> **Captured by:** <explicit|safety-net>
<context argument verbatim>
<artifact-path if provided, otherwise "N/A">
| Label | Color | Purpose | |-------|-------|---------| | `deferred` | `#7B61FF` | Universal query handle | | `war-room` | `#B60205` | Source: war-room deliberation | | `brainstorm` | `#1D76DB` | Source: brainstorming session | | `scope-guard` | `#FBCA04` | Source: scope-guard deferral | | `feature-review` | `#F9A825` | Source: feature-review | | `review` | `#0E8A16` | Source: code/PR review | | `regression` | `#D73A4A` | Source: skill regression | | `egregore` | `#5319E7` | Source: autonomous agent |
Search: `gh issue list --search "<title> in:title" --state open --json number,title`
Compare: exact title match after stripping `[Deferred]` prefix and normalizing to lowercase.
Only open issues are checked. Re-filing a closed deferred item is intentional.
Created: `{"status": "created", "issue_url": "...", "number": 42}` Duplicate: `{"status": "duplicate", "existing_url": "...", "number": 17}` Error: `{"status": "error", "message": "..."}`
Any wrapper can verify conformance with:
python3 scripts/deferred_capture.py \ --title "Test: compliance check" \ --source test \ --context "Automated compliance verification" \ --dry-run
Must output valid JSON with a `status` field.
valid JSON with a `status` field (`created`, `duplicate`, or `error`) for any conformant wrapper
the `deferred` label and the source label, and body matches the required template (Source, Captured, Branch, Captured by, Context, Original Artifact, Next Steps)
--search "<title> in:title"` called and exact match (after stripping prefix and lowercasing) suppresses the new issue
"created", "issue_url": "...", "number": N}` on success, `{"status": "duplicate", ...}` on duplicate, `{"status": "error", "message": "..."}` on failure
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use night-market-change-control.
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily commands; use night-market-operations.
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use night-market-debugging-playbook.
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled battles; see failure-archaeology.
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use night-market-validation-and-qa.