cursor/.cursor/skills/ai-orchestration-prompt-engineering/SKILL.md
Use when delegating tasks to AI agents, designing prompts for structured output, validating AI-generated code or reasoning, detecting hallucination, or when AI output needs constraint checking and human oversight before integration.
npx skillsauth add akshay-na/dotfiles ai-orchestration-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.
Use AI systems as structured collaborators, not autocomplete tools. Every AI interaction should have clear boundaries, verifiable output, and human oversight. Trust nothing by default. Validate everything.
| Competency | Key Question | |---|---| | Task delegation | Is the task well-scoped with clear success criteria? | | Structured output | Does the prompt enforce format, constraints, and boundaries? | | Reasoning validation | Can the AI's reasoning be independently verified? | | Hallucination detection | Are claims checked against source material or constraints? | | Prompt iteration | Is each refinement narrowing toward precision, not adding noise? | | Human oversight | Is there a review step before AI output is integrated? |
Stop and reassess if you observe:
| Signal | Root Cause | |---|---| | Blind trust in AI output | No verification step; output accepted without review | | Unstructured responses | Prompt lacks format constraints; output is free-form prose | | AI-driven complexity | AI suggested abstractions or patterns that add no real value | | Poor reproducibility | Same prompt yields inconsistent results; lacks specificity | | Hallucinated references | AI cites APIs, libraries, or patterns that do not exist | | Delegation without criteria | Task given to AI with no definition of done or success metric |
Prompt Design Checklist:
## Role & Context
- [ ] Agent role is explicit (e.g., "You are a security reviewer")
- [ ] Relevant context provided (codebase, constraints, domain)
- [ ] Scope is bounded (what to review, what to ignore)
## Task Specification
- [ ] Task is a single, clear instruction
- [ ] Success criteria defined
- [ ] Output format specified (template, schema, structure)
- [ ] Constraints stated (do NOT do X)
## Verification
- [ ] Output is independently verifiable
- [ ] Factual claims can be checked against sources
- [ ] Code suggestions can be tested
- [ ] Reasoning chain is traceable
## Iteration
- [ ] First result reviewed before accepting
- [ ] Ambiguous output triggers prompt refinement, not guessing
- [ ] Each iteration adds precision, not complexity
Delegation Decision Framework:
Delegate to AI when:
- Task is well-defined and output is verifiable
- Task benefits from broad pattern matching (search, review, comparison)
- Manual execution is tedious but verification is fast
- Output format can be constrained
Do NOT delegate when:
- Task requires judgment that cannot be verified from output alone
- Incorrect output has high cost and low detectability
- Domain knowledge is too specialized for the model
- Verification would take longer than doing it manually
| Mistake | Fix | |---|---| | Accepting AI output without review | Treat every output as a draft; verify before integrating | | Vague prompts expecting precise results | Add constraints, format requirements, and examples | | Using AI to generate code you cannot review | Only delegate code you can read, test, and understand | | Iterating prompts without tightening scope | Each iteration should reduce ambiguity, not add instructions | | No fallback when AI fails | Define what to do when output is unusable; have a manual path | | Trusting AI-cited references | Verify every API, library, or pattern reference against docs |
development
Discovery + naming convention reference for typed dev/SME/QA/devops team members in any workspace folder. Primary consumer: `tech-lead` (org-tier).
devops
Automated task classification, agent selection, and state tracking. Use when routing tasks to agents, selecting pipelines, or managing task state.
testing
Use when designing scalable systems, evaluating consistency models, planning state management, making architectural decisions, or when trade-offs around coupling, failure isolation, and reversibility need explicit reasoning before implementation.
tools
CTO/tech-lead helper — split work into disjoint shard briefs with caps (instance_cap, partition_basis, determinism keys).