gateway-script-design
Design gateway scripts as entry points for agentic coding. Use when creating CLI entry points for agents, designing subprocess-based agent invocation, or building script interfaces for agentic workflows.
npx skills add majiayu000/claude-skill-registry --skill gateway-script-design-melodic-software-claude-code-plugins --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Gateway Script Design Skill Guide creation of gateway scripts - the entry points into agentic coding. ## When to Use - Creating new CLI entry points for agents - Building programmatic agent invocation - Designing composed workflows - Setting up automation scripts ## Core Concept > "This script is the gateway into agentic coding. It's distinctly different from any other type of code - it's calling an agent." Gateway scripts move you from conversation to automation. ## Three Gateway Patterns ### Pattern 1: Direct Prompt Execute ad-hoc prompts: ```python # adw_prompt.py @click.command() @click.argument("prompt") @click.option("--model", default="opus") def main(prompt: str, model: str): request = AgentPromptRequest( prompt=prompt, model=model, agent_name="oneoff" ) response = prompt_claude_code(request) ``` **Use case:** Quick one-offs, testing, exploration ### Pattern 2: Slash Command Wrapper Execute slash commands programmatically: ```python # adw_slash_command.py @click.command() @click.argument("command") @click.argument("args", nargs=-1) def main(command: str, args: tuple): request = AgentTemplateRequest( slash_command=f"/{command}", args=list(args) ) response = execute_templat
- When to Use
- Core Concept
- Three Gateway Patterns
- Pattern 1: Direct Prompt
- Pattern 2: Slash Command Wrapper
- Pattern 3: Composed Workflow
- Design Checklist
- 1. CLI Interface
- 2. Unique Identification
- 3. Output Organization
- 4. Safe Environment
- 5. Error Handling
- 6. Rich Output
- Request/Response Models
What does the gateway-script-design skill do?
Design gateway scripts as entry points for agentic coding. Use when creating CLI entry points for agents, designing subprocess-based agent invocation, or building script interfaces for agentic workflows.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill gateway-script-design-melodic-software-claude-code-plugins --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
