best-practices
Transforms vague prompts into optimized Claude Code prompts.
Skill by MoizIbnYousaf
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/moizibnyousaf-best-practices
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/best-practices
What's inside
- Skill name
best-practices- Description
- Transforms vague prompts into optimized Claude Code prompts. Adds verification, specific context, constraints, and proper phasing. Invoke with /best-practices.
- License
- MIT
- Instructions
- 495 lines in SKILL.md · view on GitHub
Files (9)
- SKILL.md
- best-practices-referencer.md · agents/
- codebase-context-builder.md · agents/
- task-intent-analyzer.md · agents/
- anti-patterns.md · references/
- before-after-examples.md · references/
- best-practices-guide.md · references/
- common-workflows.md · references/
- prompt-patterns.md · references/
SKILL.md (first lines)
# Best Practices — Prompt Transformer
> Transform prompts by adding what Claude needs to succeed.
## Start Here
Based on user's request:
**User provides a prompt to transform:**
→ Ask using AskUserQuestion:
- **Question:** "How should I improve this prompt?"
- **Header:** "Mode"
- **Options:**
1. **Transform directly** — "I'll apply best practices and output an improved version"
2. **Build context first** — "I'll gather codebase context and intent analysis first"
**User asks to learn/understand:**
→ Show the 5 Transformation Principles section
**User asks for examples:**
→ Link to references/before-after-examples.md
**User asks to evaluate a prompt:**
→ Use the Success Criteria eval rubric at the end of this document
---
## If "Transform directly"
Apply the 5 principles below and output the improved prompt immediately.
## If "Build context first"
Launch 3 parallel agents to gather context:
```
Run these agents IN PARALLEL using the Task tool:
- Task task-intent-analyzer("[user's prompt]")
- Task best-practices-referencer("[user's prompt]")
- Task codebase-context-builder("[user's prompt]")
```
### What Each Agent Returns
| Agent | Mission | Returns |
|-------|---------|---------|
| **task-intent-analyzer** | Understand what user is trying to do | Task type, gaps, edge cases, transformation guidance |
| **best-practices-referencer** | Find relevant patterns from references/ | Matching examples, anti-patterns to avoid, transformation rules |
| **codebase-context-builder** | Explore THIS codebase | Specific file paths, similar implementations, conventions |
### After Agents Return
1. **Synthesize findings** — Combine intent + best practices + codebase context
2. **Apply matching patterns** — Use examples from best-practices-referencer as templates
3. **Ground in codebase** — Add specific file paths from codebase-context-builder
4. **Transform the prompt** — Apply the 5 principles with all gathered context
5. **Output** — Show improved prompt with before/after comparison
### Agent Definitions
The agents are defined in `agents/`:
- `agents/task-intent-analyzer.md` — Analyzes intent, gaps, and edge cases
- `agents/best-practices-referencer.md` — Finds relevant examples and patterns from references/
- `agents/codebase-context-builder.md` — Explores codebase for files and conventions
---
## Transformation Workflow
When transforming (after mode selection):
1. **Identify what's missing** — Check against the 5 principles below
2. **Add missing elements** — Verification, context, constraints, phases, rich content
3. **Output the improved prompt** — In a code block, ready to copy-paste
4. **Show what changed** — Brief comparison of before/after
---
## The 5 Transformation Principles
Apply these in order of priority:
### 1. Add Verification (Highest Priority)
**The single highest-leverage improvement.** Claude performs dramatically better when it can verify its own work.
| Missing | Add |
|---------|-----|
| No success criteria | Test cases with expected inputs/outputs |
| UI changes | "take screenshot and compare to design" |
| Bug fixes | "write a failing test, then fix it" |
| Build issues | "verify the build succeeds after fixing" |
| Refactoring | "run the test suite after each change" |
| No root cause enforcement | "address root cause, don't suppress error" |
| No verification report | "summarize what you ran and what passed" |
```
BEFORE: "implement email validation"
AFTER: "write a validateEmail function. test cases: user@example.com → true,
invalid → false, user@.com → false. run the tests after implementing"
```
```
BEFORE: "fix the API error"
AFTER: "the /api/orders endpoint returns 500 for large orders. check
OrderService.ts for the error. address the root cause, don't suppress
the error. after fixing, run the test suite and summarize what passed
and what you verified."
```
### 2. Provide Specific Context
Replace vague references with precise locations and details.
| Vague | Specific |
|-------|----------|
| "the code" | `src/auth/login.ts` |
| "the bug" | "users report X happens when Y" |From MoizIbnYousaf/ai-agent-skills, MIT.
More from MoizIbnYousaf/ai-agent-skills
- 0.743score
verification-agent
MoizIbnYousaf
Verify claims, quotations, citations and references against live primary sources, and produce a reproducible audit record instead of an assertion.
SkillBFreshness: B★ 1.2KClaude Code +9 - 0.687score
curate-a-team-library
MoizIbnYousaf
Use when building a managed team skills library for a real stack.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.687score
build-workspace-docs
MoizIbnYousaf
Use when regenerating README.md and WORK_AREAS.md in a managed library workspace.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.687score
install-from-remote-library
MoizIbnYousaf
Use when installing skills from a shared ai-agent-skills library repo.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.687score
migrate-skills-between-libraries
MoizIbnYousaf
Use when moving skills between library workspaces or upgrading from a personal library to a team library.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.687score
share-a-library
MoizIbnYousaf
Use when a managed library is ready to publish to GitHub and hand to teammates as an install command.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.687score
update-installed-skills
MoizIbnYousaf
Use when syncing or updating previously installed skills to their latest version.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.687score
review-a-skill
MoizIbnYousaf
Use when evaluating whether a skill belongs in a library.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.687score
audit-library-health
MoizIbnYousaf
Use when checking the overall health of a skills library.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.687score
browse-and-evaluate
MoizIbnYousaf
Use when exploring the ai-agent-skills catalog to find, compare, and evaluate skills before installing.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.683score
database-design
MoizIbnYousaf
Database schema design, optimization, and migration patterns for PostgreSQL, MySQL, and NoSQL databases.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.683score
backend-development
MoizIbnYousaf
Backend API design, database architecture, microservices patterns, and test-driven development.
SkillCFreshness: C★ 1.2KClaude Code +9
Signals
- Stars
- 1,153
- Forks
- 135
- Open issues
- 1
- Last commit (this folder)
- Mar 31, 2026 (7 months ago)
- Last release
- May 3, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/MoizIbnYousaf/ai-agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from MoizIbnYousaf
- 0.743score
verification-agent
MoizIbnYousaf
Verify claims, quotations, citations and references against live primary sources, and produce a reproducible audit record instead of an assertion.
SkillBFreshness: B★ 1.2KClaude Code +9 - 0.687score
install-from-remote-library
MoizIbnYousaf
Use when installing skills from a shared ai-agent-skills library repo.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.687score
curate-a-team-library
MoizIbnYousaf
Use when building a managed team skills library for a real stack.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.687score
audit-library-health
MoizIbnYousaf
Use when checking the overall health of a skills library.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.687score
build-workspace-docs
MoizIbnYousaf
Use when regenerating README.md and WORK_AREAS.md in a managed library workspace.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.687score
browse-and-evaluate
MoizIbnYousaf
Use when exploring the ai-agent-skills catalog to find, compare, and evaluate skills before installing.
SkillCFreshness: C★ 1.2KClaude Code +9
Cite this page
best-practices skill. Agent Mart. https://agentmart.dev/skills/moizibnyousaf-best-practices (last updated 2026-10-24)