auto-optimize-prompt
$
npx mdskill add doodledood/manifest-dev/auto-optimize-prompt**User request**: $ARGUMENTS
SKILL.md
.github/skills/auto-optimize-promptView on GitHub ↗
--- name: auto-optimize-prompt description: 'Iteratively auto-optimize a prompt until no issues remain. Uses prompt-reviewer in a loop, asks user for ambiguities, applies fixes via prompt-engineering skill. Runs until converged.' --- # Auto-Optimize Prompt **User request**: $ARGUMENTS Iteratively optimize a prompt until no issues remain. ## Goal Loop until prompt-reviewer finds no issues: review → resolve NEEDS_USER_INPUT with user → fix via prompt-engineering → repeat. - **No path provided**: Ask which file to optimize - **Working copy**: Use `/tmp/auto-optimize-*.md` during iterations; apply to original only when converged ## Constraints | Constraint | Why | |------------|-----| | **Converge, don't cap** | No iteration limits—run until no issues | | **Atomic output** | Original unchanged until fully converged | | **DRY** | Delegate review to prompt-reviewer, fixes to prompt-engineering | | **User-in-the-loop** | NEEDS_USER_INPUT issues require user resolution (with context, options); skip if user declines | ## Output Report: file path, iterations, issues fixed (auto vs user-resolved), issues skipped, summary of changes.
More from doodledood/manifest-dev
- autoEnd-to-end autonomous execution: figure-out → define → do, chained without manual approval gates. Use when you want to define and execute without intervention during planning, when the user asks for autonomous or end-to-end work, says just build it, or asks to tend or babysit a PR.
- compress-promptCompresses prompts/skills into minimal goal-focused instructions. Trusts the model, drops what it already knows, maximizes action space. Use when asked to compress, condense, or minimize a prompt.
- defineManifest builder. Turns shared understanding into a verifiable Manifest with Deliverables, Acceptance Criteria, Global Invariants, and Approach. Use when planning features, scoping refactors, debugging complex issues, or when the user asks to define, scope, plan, spec out, make a manifest, or break down a task.
- doneCompletion marker for the /do workflow. Outputs a plain-prose summary of what was built. Called by /do after every Acceptance Criterion and Global Invariant verifies PASS, when the manifest is complete, all criteria pass, or the workflow needs to wrap up with a completion summary.
- escalateStructured escalation when /do hits an unrecoverable blocker. Surfaces what was tried, why it failed, and what the user can decide. Called by /do when work is blocked, cannot proceed, hits an unrecoverable failure, needs a user decision, or gets stuck.
- exampleAnalyzes the current project structure and tech stack. Use when asked to explore, understand, or summarize a project. Trigger terms: project overview, analyze codebase, what is this project.
- figure-outFigure things out together — any topic, problem, or idea. Presses relentlessly until shared understanding is reached. Use when you need to understand before acting, when figuring it out is the goal, or when the user asks to think through a decision, dig deeper, press an assumption, investigate why something is happening, or work through a problem.
- figure-out-teamDrive a multi-party deliberation in a Slack channel or thread. The agent is an involved orchestrator — presses rigorously, brings evidence, names trade-offs, surfaces disagreements, advances when answers cohere; owner-by-Slack-handle overrules. Use when the people involved cannot all sit in one chat, when deliberation has to happen in Slack, or when the user asks to figure out with the team, press a group asynchronously, or get the team aligned.
- harden-task-fileHarden /define task guidance files for one-shot quality. Iterates: orthogonality gap analysis, user-approved additions, prompt review, fix, converge. Use when a task file needs comprehensive coverage or "harden task file".
- learn-from-sessionAnalyze Claude Code sessions to learn what went right/wrong and suggest high-confidence improvements to skills. Use when asked to analyze a session, learn from a session, or review workflow effectiveness.