best-practices

best-practices is a skill for Claude Code, Codex from vinta/hal-9000. It costs 90 tokens per session (900 once invoked), scanned A, original, MIT.

A research step for choosing or configuring a tool, library, API, setting, or project design. It checks current recommendations and common mistakes before work begins.

In plain words
What is it for?
Use it before selecting libraries, designing an API integration, changing configuration, or proposing a project setup. It gathers relevant documentation and examples, including warnings about common failures.
Why use it?
Technical guidance changes, and an approach that looks correct can have hidden limits or setup problems. Researching both the recommended method and its pitfalls reduces avoidable debugging.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Part of the hal-skills plugin — 13 skills shipped together

Good fit Use it before selecting libraries, designing an API integration, changing configuration, or proposing a project setup. It gathers relevant documentation and examples, including warnings about common failures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vinta/hal-9000/best-practices
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vinta/hal-9000 --skill best-practices
Clone the repo
git clone --depth 1 https://github.com/vinta/hal-9000

Made for: Claude Code, Codex.

Or install hal-skills, the plugin that ships this one along with the rest of its 13 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/vinta/hal-9000/best-practices/github.svg)](https://agentmods.dev/skills/vinta/hal-9000/best-practices)
Your own site
<a href="https://agentmods.dev/skills/vinta/hal-9000/best-practices"><img src="https://agentmods.dev/badge/skills/vinta/hal-9000/best-practices/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for best-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/vinta/hal-9000/best-practices"><img src="https://agentmods.dev/badge/skills/vinta/hal-9000/best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 900 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 8
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 9
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium Prompt Injection · line 25
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.00900
Opus 5.5 $0.00036 $0.00360
Sonnet 5.5 $0.00018 $0.00180
Haiku 4.5 $0.00009 $0.00090

Measured 11d ago against content hash 938bca379e14, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

best-practices scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/best-practices/SKILL.md · 36 lines

How it starts

The opening of the file, as written. The whole thing — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Best Practices

Answer two questions from current sources: what's the recommended way, and what bites people (the gotchas and pitfalls around it). A how-to without its pitfalls is half an answer.

Two-Phase Rule

  • Phase 1: Research. Dispatch find-docs and/or web search queries (WebSearch in Claude Code, web_search in Codex).
  • Phase 2: Synthesize and act. Starts only after Phase 1 results arrive.

The user's argument may be a question or an imperative. Imperatives ("refine X", "set up Y") determine what Phase 2 does, not whether Phase 1 happens. Phase 1 always runs.

Workflow

  1. Check what the project already has for the problem (installed dependencies, existing helpers, config) and state it as part of the user's situation in every query and brief below.
  2. Size the topic.
    • Narrow (one tool or library, and a question its docs or issue tracker can settle): research it yourself with find-docs and web search, sending independent lookups in one message, at least one of them for pitfalls, and read the page behind each claim, not only its search snippet. Then go to step 4.
    • Broad (a choice between approaches, a setup spanning several tools, a design of your own): break it into 2-4 queries that don't overlap. Dedicate at least one query to pitfalls ("common mistakes with X", "X gotchas in production"): pitfalls live in issue threads, migration guides, and post-mortems, not in getting-started docs. Dedicate one query to how leading open source projects or production teams do it, which can differ from what the docs recommend.
  3. Dispatch one subagent per query in a single message: in Claude Code, pass model: sonnet on each Agent call; in Codex, spawn them in one request, selecting a faster model in each spawn. Open each brief with the user's situation and constraints, so the findings fit their setup, and name what the other subagents cover, so none repeats it. End each brief with this paragraph word for word, since a paraphrase of its run rules tends to drop the ctx7 exception:

Read the full file on GitHub · 36 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed · +2 lines 938bca379e14
  2. 19d ago Changed · +3 lines b710b7f3f5fa
  3. 20d ago Changed · +8 lines · +7 tokens per session bebec8dd04ae
  4. 22d ago Changed · +1 lines 7c0c84bbb3c8
  5. 23d ago Changed · -7 lines bd127c5f0bc6
  6. 25d ago Changed 1c4c38c5ebe9
  7. 1mo ago Changed e5e1a674fed9
  8. 1mo ago Changed · -61 lines d1b4f6dd4044
  9. 2mo ago Changed · -1 lines 72cf0a5892c4
  10. 2mo ago First seen · 91 lines · 83 tokens per session scan A 512c7d9b23a4

Subscribe to this mod's changes

best-practices is a skill published in the GitHub repository vinta/hal-9000 (144 stars, last pushed today), licensed MIT. It adds 90 tokens to every session and 900 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

best-practices compared with skills from other repositories

best-practices next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
best-practicesvinta/hal-9000Skill144todayMITA90Claude Code, Codex
optimize-python-parallelismcloudguo123/atomlaneSkill1todayMPL-2.0A70Codex
jarvis-setupethanplusai/jarvisSkill1.0k2mo agononeA79Claude Code, Codex
cirqagentlas-ai/agentlas-desktopSkill102d agoApache-2.0A67Claude Code
biopythonagentlas-ai/agentlas-desktopSkill102d agoApache-2.0A76Claude Code
scikit-bioagentlas-ai/agentlas-desktopSkill102d agoApache-2.0A54Claude Code
simpyagentlas-ai/agentlas-desktopSkill102d agoApache-2.0A42Claude Code