deepagents-architectur…
Guides architectural decisions for Deep Agents applications. Use when deciding between Deep Agents vs alternatives, choosing backend strategies, designing…
Optimize prompts for code-related tasks following prompt-engineering best practices. Use when refining prompts for implementation, debugging, refactoring, code review, or testing.
$ npx -y skills add existential-birds/beagle --skill prompt-improver --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/prompt-improverContext preview
The summary Claude sees to decide when to auto-load this skill.
Optimize prompts for code-related tasks following prompt-engineering best practices. Use when refining prompts for implementation, debugging, refactoring, code review, or testing.
name: prompt-improver description: Optimize prompts for code-related tasks following prompt-engineering best practices. Use when refining prompts for implementation, debugging, refactoring, code review, or testing. disable-model-invocation: true
Optimize code-related prompts for clarity, investigation-first thinking, and verification.
$ARGUMENTS
---
Evaluate the input prompt across these dimensions:
| Dimension | What to check | |-----------|---------------| | Task Clarity | Is the task type clear? (implement, fix, refactor, review, test) Are boundaries defined? | | Investigation | Does it specify reading/understanding before acting? | | Verification | Are there appropriate checks? (run tests, build, lint) | | Context Anchoring | Does it reference specific files, functions, or patterns? | | Action Specificity | Is the desired outcome explicit? Quality expectations stated? | | Scope Control | Is it appropriately scoped? Clear stopping points? |
Identify which dimensions are weak or missing in the input prompt.
Complete in order; do not skip steps.
1. **Audit gate (end of Step 1):** **Pass when** the forthcoming Analysis names the task type and either lists each weak or missing dimension from the table or explicitly states all dimensions are adequate, with a brief reason for any dimension you treat as already sufficient. 2. **Transform gate (Step 2):** **Pass when** every improvement you will list under "Improvements Applied" maps to a gap from the audit (or to deliberate strengthening when the prompt was already adequate). 3. **Output gate (Step 3):** **Pass when** the Optimized Prompt block appears only after Gates 1–2 pass.
Original: "fix the login bug" Optimized: Fix the login bug. First, read the authentication-related files to understand the current implementation. Reproduce the bug to confirm the issue. Identify the root cause before making changes. Implement the fix and run existing tests to verify no regressions.
Original: "add dark mode" Optimized: Implement dark mode for the application. First, check how theming/styling is currently handled in the codebase. Look for existing color variables or theme patterns. Implement the toggle and theme switching with minimal changes to existing components. Run tests and verify the UI renders correctly in both modes.
Original: "clean up the user service" Optimized: Refactor the user service for improved maintainability. Read the current implementation and understand its responsibilities. Identify specific issues (duplication, unclear naming, tight coupling). Make incremental changes, running tests after each step to ensure behavior is unchanged.
| Task Type | Tip | |-----------|-----| | Bug fixes | Include reproduction steps if known. Specify whether this is a quick fix or needs root cause analysis. | | Feature implementation | Reference similar features in the codebase. Specify if tests are expected. | | Refactoring | State the goal (readability, performance, testability). Emphasize incremental changes. | | Code review | Specify focus areas (security, performance, style). Mention what to ignore. | | Testing | Specify test type (unit, integration, e2e). Reference existing test patterns. |
Follow the Gates under Step 1 (audit → transform → output). Produce output in this exact format:
[2-3 sentences identifying the prompt type, which dimensions are weak or missing, or why all dimensions are already adequate]
[The improved prompt, ready to copy and use]
[1-2 sentences of relevant tips from the Task-Type Tips table]
Image: NASA, Public Domain. Source Beagle is an Agent Skills marketplace: framework-aware code review, documentation, testing, architectural analysis, and git workflows for any compatible coding agent.
Repo: existential-birds/beagle
Guides architectural decisions for Deep Agents applications. Use when deciding between Deep Agents vs alternatives, choosing backend strategies, designing…
Reviews Deep Agents code for bugs, anti-patterns, and improvements. Use when reviewing code that uses create_deep_agent, backends, subagents, middleware, or…
Implements agents using Deep Agents. Use when building agents with create_deep_agent, configuring backends, defining subagents, adding middleware, or setting…
Guides architectural decisions for LangGraph applications. Use when deciding between LangGraph vs alternatives, choosing state management strategies, designing…
Reviews LangGraph code for bugs, anti-patterns, and improvements. Use when reviewing code that uses StateGraph, nodes, edges, checkpointing, or other LangGraph…
Implements stateful agent graphs using LangGraph. Use when building graphs, adding nodes/edges, defining state schemas, implementing checkpointing, handling…