api-design
REST API design best practices. Use when designing APIs, choosing status codes, or creating endpoints.
Load phase-relevant skills before GSD execute-phase, then capture execution observations
$ npx -y skills add Tibsfox/gsd-skill-creator --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/executeContext preview
What this command does when you run it.
Load phase-relevant skills before GSD execute-phase, then capture execution observations
name: wrap:execute description: Load phase-relevant skills before GSD execute-phase, then capture execution observations argument-hint: "[phase-number]" allowed-tools: - Read - Write - Bash - Glob - Task
<objective> Wrap GSD execute-phase with automatic skill loading before execution and observation capture after completion. The user runs `/wrap:execute N` where N is the phase number. This command:
1. Reads integration config to check if wrappers are enabled 2. Loads phase-relevant skills based on the phase domain/topic 3. Delegates to the real GSD execute-phase command (never reimplements GSD logic) 4. Captures execution observations to sessions.jsonl for pattern detection 5. Displays a transparency summary of what was loaded and captured
If skill loading or observation capture fails at any point, the GSD command still runs normally. The wrapper enhances but never blocks. </objective>
<companion-skills> As the **first step in handler dispatch** (before Step 2 skill loading), invoke the `intent-router` skill to classify the request's information-need and return a strategy label, a token budget, and a retrieval depth. Use that to specialise downstream skill loading rather than defaulting one retriever for everything. Advisory and best-effort: if intent-router is unavailable, proceed with the default loading path (the wrapper never blocks). </companion-skills>
<process>
Extract the phase number N from the user's input.
Store N for use in all subsequent steps.
---
Read `.planning/skill-creator.json` using the Read tool.
**If the file does not exist:** Proceed with all features enabled. This follows the opt-out model: everything defaults to `true`.
**If the file exists, parse it and extract:**
**If `integration.wrapper_commands` is explicitly `false`:** Display the following message and stop:
Wrapper commands are disabled in `.planning/skill-creator.json`. Run `/gsd:execute-phase N` directly, or enable wrappers by setting `integration.wrapper_commands` to `true` in the config.
Do not proceed to further steps.
**If parsing fails** (malformed JSON, unexpected structure), log the error and proceed with defaults.
---
**This entire step is wrapped in error handling.** If ANY part of skill loading fails -- file read errors, glob failures, parsing problems -- log the failure and proceed directly to Step 3. Skill loading must never block GSD execution.
**If `integration.auto_load_skills` is `false`**, skip this step and display:
Skill loading disabled in config. Proceeding with base GSD execution.
**If enabled (default):**
Read `.planning/ROADMAP.md` using the Read tool. Find the entry for Phase N and extract:
Determine the phase topic/domain from the goal text. Look for keywords such as: "auth", "authentication", "UI", "interface", "API", "endpoint", "test", "testing", "config", "configuration", "database", "schema", "security", "monitoring", "deploy", "CI", "hook", "git", "skill", "pattern", "observation", "wrapper", "command", "install", "validate".
1. Use the Glob tool to find `*.md` files in `.claude/commands/` 2. Use the Glob tool to find `*/SKILL.md` files in `.claude/skills/` 3. For each skill file found, read its first 10 lines to extract frontmatter (name, description) 4. Match skills whose description or name contains keywords from the phase domain 5. Always include skills tagged as always-applicable (e.g., `beautiful-commits`) regardless of domain match
Display which skills were loaded:
### Skills Loaded - beautiful-commits (always-applicable) - tdd-workflow (matches phase topic: "testing") Loaded 2 skills for Phase N execution.
If no skills match the phase domain, display:
### Skills Loaded No phase-specific skills found. Proceeding with base GSD execution.
If skill scanning encounters an error at any point, display:
### Skills Loaded Skill loading encountered an error. Proceeding without skill enhancement.
---
This is the core step. The wrapper invokes the real GSD command -- it does NOT reimplement any GSD logic.
1. Read the file `.claude/commands/gsd/execute-phase.md` using the Read tool 2. **If the file exists:** Follow its instructions with phase number N as the argument. Execute the full GSD execute-phase process as documented in that command file. 3. **If the file does NOT exist** (GSD commands stored elsewhere): Use the Task tool to invoke. Pass an `effort` parameter derived from the current GSD profile (`/gsd:set-profile`): `quality`→`high`, `balanced`→`medium`, `budget`→`low`. Omit `effort` for `inherit` to preserve the parent runtime's default behavior (OGA-016, additive). Source the profile from `.planning/skill-creator.json` `integration.profile`.
An adaptive learning and coprocessor architecture for Claude Code, built as an extension to GSD (open-gsd)
Repo: Tibsfox/gsd-skill-creator
REST API design best practices. Use when designing APIs, choosing status codes, or creating endpoints.
Reviews code for bugs, style, and best practices. Use when reviewing PRs or checking code quality.
Creates context handoff documents for session continuity. Use when ending sessions, switching tasks, or handing off work.
Thinking frameworks for decisions and problem analysis. Use when evaluating options, root causes, or prioritizing.
Environment configuration and secrets management. Use when setting up .env files, managing secrets, or configuring environments.
Safe file operation patterns. Use when performing bulk file operations or writing deployment scripts.