prompt-engineering/SKILL.md
Analyze and optimize prompts for AI coding agents. Decompose tasks into components (skills/commands/agents), detect missing context, and produce ready-to-paste improved prompts. Advisory only — outputs prompts, not code. Triggers: "optimize prompt", "improve my prompt", "rewrite this prompt", "how to write a prompt for", "help me prompt"
npx skillsauth add lidge-jun/cli-jaw-skills prompt-engineeringInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Analyze a draft prompt, identify gaps, map it to available agent components, and output an optimized prompt the user can paste and run.
2026 note: The field has evolved from "prompt engineering" to "context engineering" — managing the full context window (system prompts, retrieved data, tool schemas, conversation history) rather than just optimizing the wording of a single prompt.
Advisory only — output analysis and an optimized prompt. Do not execute the task.
Before analyzing the prompt, detect context from the working directory:
CLAUDE.md / AGENTS.md for project conventionspackage.json → Node / TypeScript / React / Next.jsgo.mod → Gopyproject.toml / requirements.txt → PythonCargo.toml → Rustbuild.gradle / pom.xml → Java / KotlinIf no project files found, flag "tech stack unknown" and proceed.
Classify the user's task:
| Category | Signal Words | Example | |----------|-------------|---------| | New Feature | build, create, add, implement | "Build a login page" | | Bug Fix | fix, broken, not working, error | "Fix the auth flow" | | Refactor | refactor, clean up, restructure | "Refactor the API layer" | | Research | how to, what is, explore | "How to add SSO" | | Testing | test, coverage, verify | "Add tests for the cart" | | Review | review, audit, check | "Review my PR" | | Documentation | document, update docs | "Update the API docs" | | Infrastructure | deploy, CI, docker, database | "Set up CI/CD pipeline" |
| Scope | Heuristic | Approach | |-------|-----------|----------| | Trivial | Single file, < 50 lines | Direct execution | | Low | Single component or module | Single skill or tool | | Medium | Multiple components, same domain | Chained steps + verification | | High | Cross-domain, 5+ files | Plan first, then phased execution | | Epic | Multi-session, architectural shift | Multi-session plan with checkpoints |
Map intent + scope to available agent components:
| Intent | Skills | Agents | |--------|--------|--------| | New Feature | dev, dev-frontend/backend, dev-scaffolding | planner, code-reviewer | | Bug Fix | dev-testing, dev-debugging | tdd-guide | | Refactor | dev-code-reviewer | code-reviewer | | Research | search, rag | explore agent | | Testing | dev-testing | test runner | | Review | dev-code-reviewer | code-reviewer | | Documentation | documentation | doc writer | | Infrastructure | dev-backend | architect |
For project-specific skills, check .agents/skills/ to find applicable ones.
Scan the prompt for missing information:
If 3+ items are missing, ask the user up to 3 clarification questions before generating the optimized prompt.
Produce two versions:
Full version (inside a fenced code block):
Quick version (one-liner patterns):
| Intent | Pattern |
|--------|---------|
| New Feature | Plan [feature]. Implement with tests. Review. Verify. |
| Bug Fix | Write failing test for [bug]. Fix to green. Verify. |
| Refactor | Refactor [scope]. Review. Verify no regressions. |
| Research | Search for [topic]. Summarize findings with citations. |
| Testing | Add tests for [module]. Target [coverage]% coverage. |
### Prompt Diagnosis
**Strengths**: (what the original does well)
**Issues**: (table: issue | impact | fix)
**Needs Clarification**: (numbered questions)
### Recommended Components
(table: type | component | purpose)
### Optimized Prompt — Full
(fenced code block, ready to paste)
### Optimized Prompt — Quick
(one-liner)
### Enhancement Rationale
(table: what was added | why)
.agents/skills/ firsttools
Use only on the Codex CLI for native image generation or image editing without an API key. Save final PNG files under ~/.cli-jaw/uploads, report web-ready absolute-path markdown, and send to Telegram or Discord only when explicitly requested.
tools
Ranked repository structure map via `cli-jaw map`. Use for codebase overview, structure map, symbol overview, unfamiliar codebase exploration, architecture orientation. Triggers: repo map, structure map, codebase overview, 와꾸, project structure, unfamiliar code.
tools
cli-jaw Design workspace: create, preview, run, and export design pages from the right sidebar. Covers panel UX, direct-write workflow, artifact lifecycle, wireframe generation, design system, and Open Design adapter.
development
MUST USE for infrastructure and delivery work — container builds, deploy pipelines, Kubernetes, Infrastructure as Code, SRE foundations, edge/serverless, ML infrastructure. Triggers: Dockerfile, K8s manifests, CI/CD pipeline, Terraform/IaC, release/deploy, devops/infra/deploy or release_cd task_tags.