crew-best-practices
Community best practices for working with Claude Code - context management, planning, TDD, hooks, skills, subagents, slash commands and MCP - with what crew…
Skill by mbadali25
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/mbadali25-crew-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: testing, 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 and code. Checked Oct 26, 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/crew-best-practices
What's inside
- Skill name
crew-best-practices- Description
- Community best practices for working with Claude Code - context management, planning, TDD, hooks, skills, subagents, slash commands and MCP - with what crew already does, where crew departs on purpose, and what is genuinely unsettled. Use when asked how to use Claude Code well, whether a practice is worth adopting, why crew is built the way it is, or when auditing a repo's CLAUDE.md, hooks or skill layout against community consensus. Also use before stating a fact about code, config, history or state that has not been verified this session.
- License
- GPL-2.0
- Instructions
- 117 lines in SKILL.md · view on GitHub
Files (4)
- SKILL.md
- claude-md.md · references/
- contradictions.md · references/
- practices.md · references/
SKILL.md (first lines)
# Claude Code best practices, and where crew stands on each Source: <https://rosmur.github.io/claudecode-best-practices/> — a synthesis of roughly twelve practitioner sources. Audited against crew on 2026-09-17. **Read it as practitioners, not as a specification.** Its own §5 records five contradictions between its sources, unresolved. Where it disagrees with itself, this skill says so rather than picking a side and presenting it as consensus. ## The three claims it puts above the rest 1. **Context management is the primary failure mode.** Not model capability — context degradation. 2. **Planning before implementation is non-negotiable** for production code. 3. **Simplicity beats complexity.** Every abstraction layer makes debugging exponentially harder. ## What to do about it here | If you are... | Do this | |---|---| | Asked "how should I use Claude Code" | Answer from `references/practices.md`, not from memory | | Auditing a repo's CLAUDE.md | `references/claude-md.md` has the size limits and the anti-patterns | | Asked why crew has 4 agents or 38 commands<!-- claim: plugin-commands:crew --> | `docs/adr/0003-crew-departs-from-three-community-best-practices.md` | | Tempted to "fix" crew to match the document | Read the ADR first. Three departures are deliberate | | Adding a hook, skill or command | `references/practices.md` §Hooks, §Skills, §Commands | ## Already true of crew — do not re-implement Claiming these as gaps wastes a session. Each is checked, with where it lives: | Practice | Crew | |---|---| | Plan before coding | `/crew:plan`, with an approval receipt before edits | | Aggressive context clearing | `context-watch` hook, `context.warnAt` 0.4 (0.5 from 0.19.52, 0.4 from 1.2.40) | | "Document & Clear" pattern | `handoff-write` (PreCompact) + `handoff-read` (SessionStart) | | Quality-gate hooks | `verify-gate` on Stop, over `.crew/verify.json` | | Multi-instance review | `/crew:review` — prefers a different model family, not a clone | | Dev docs system | `.work/tickets/<id>/`, `/crew:spec`, `/crew:handoff` | | Utility scripts in skills | every `skills/*/scripts/` directory | | Don't block at write time | 0.19.52 removed the PreToolUse command guard, kept the Stop gate | That last row is the document's §4.3.2 and crew reached it independently. ## Where crew departs, on purpose Three of the document's rules call crew's architecture an anti-pattern: specialised subagents (crew has 4), a large slash-command surface (33), and being a multi-agent system at all. **These are recorded decisions, not oversights.** The reasoning, and the cost of each, is in `docs/adr/0003-crew-departs-from-three-community-best-practices.md`. Do not re-open them from the source document alone. ## The rules worth applying, in priority order Full detail in `references/practices.md`. The short form: 1. **Clear context early.** The document says 60k tokens or 30%; crew's default is now `warnAt: 0.4` with `reserveTokens: 0`. Waiting for the limit is the mistake. 2. **Avoid `/compact`.** Automatic compaction is opaque and poorly optimised. Prefer writing a handoff and clearing — which is what crew's hooks do. 3. **Be specific.** "Add a user settings page" produces vague work. Name the route, the sections, the component pattern, the tests. 4. **Review everything, including your own.** Fresh context or a different model family. A clone inherits the blind spot. 5. **Keep CLAUDE.md small.** 100–200 lines at the root, under ~2000 tokens. `references/claude-md.md` has the anti-patterns, which are the useful part. ## Verify before you state **Verify before you state.** A claim about code, config, history or state is either verified in this session (a `path:line` you read, the command you ran and what it printed, or the ref you measured at) or labelled `not verified` or `inferred`. "Could not tell" is an answer. Never fill the gap with the likely value. Before proposing to change something, look up whether it was already decided (`CHANGELOG.md`, `docs/adr/`, the ticket's `direction.md`) and cite what you found, or say you found nothing. Quoted output, errors and fixtures move by copying the bytes, never by re-typing them. This rule is crew's own: its agents and skills carry it, and crew does not write it into the repos it sets up. ## What the document gets wrong for this repo Two of its numbers do not transfer, and saying so is part of using it well: - **"Clear at 60k tokens"** was written for a 200k window. On a 1M window that is 6%, which would clear several times per task. Crew expresses the same intent as a fraction (`warnAt`) so it scales, and auto-detects the window from the model rather than assuming one. - **"Keep total CLAUDE.md under 2000 tokens"** is good advice for a project CLAUDE.md and bad advice for this repo's, which is a landmine list earned by shipped defects. Length is not the metric; whether each line changes a decision is. ## Measuring, not asserting The document's §9 offers metrics. Two are worth running here: - **Skill size.** Main `SKILL.md` under 500 lines, with progressive disclosure into `references/`. Check with `wc -l plugin/crew/skills/*/SKILL.md`. - **MCP token cost.** "More than 20k tokens of MCPs" is its threshold for crippling a session. Crew registers no MCP server of its own. ## Reference files - `references/practices.md` — the full rule set by area: TDD, quality gates, code review, commits, context, planning, skills, hooks, subagents, slash commands, MCP, search, workflow, testing standards, headless mode. - `references/claude-md.md` — CLAUDE.md structure, size limits, the four anti-patterns, and what to write instead. - `references/contradictions.md` — the five the document itself records as unresolved, with crew's position on each.
From mbadali25/useful-claude-add-ons, GPL-2.0.
More from mbadali25/useful-claude-add-ons
- 0.603score
crew-qa-standards
mbadali25
Harness, QA-review and environment standards plus a report-only audit (parallel tests, pinned linters CI really runs, gate rules that can fail, QA environment…
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
crew-graph
mbadali25
Build and query a code graph of this repository with graphify, keeping it on the filesystem as graph.json and fresh on commit.
SkillAFreshness: A★ 2Claude Code +9 - 0.599score
crew-diagrams
mbadali25
Author architecture, process, sequence, ER and data-flow diagrams as Mermaid that pass a measured readability check (no crossing lines, nothing drawn through…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
crew-debugging
mbadali25
Find the cause of a defect before proposing a fix - read errors, reproduce, check recent changes, gather evidence from this repo's code map and verification…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
crew-providers
mbadali25
Set up, verify, and invoke external model providers - Codex, Kimi Code or GitHub Copilot for QA review, Gemini for design second opinions.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
crew-change
mbadali25
The change-request template, the ten questions a change board requires, and how each field maps onto ServiceDesk Plus, Jira and a local file.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
crew-context
mbadali25
Manage context exhaustion - warn near the limit, write handoff notes, and resume work after a clear or compact.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
crew-memory
mbadali25
Conventions for durable project memory across repos, including Obsidian vault integration.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
crew-notify
mbadali25
Set up outbound notifications to Microsoft Teams or Telegram - deploy results and "Claude stopped and is waiting" questions - and explain the two-way MCP…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
crew-cloud
mbadali25
Configure the official AWS and Azure MCP servers safely for a repo.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
crew-docs
mbadali25
Keep CHANGELOG.md, README.md, SECURITY.md, TODO.md, ADRs, generated docs, and the API and feature reference current as work lands.
SkillAFreshness: A★ 2Claude Code +9 - 0.595score
crew-brainstorm
mbadali25
Turn a request into an approved direction before it becomes a spec - one question per message, options with the recommendation first, never implement before…
SkillAFreshness: A★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 17
- Last commit (this folder)
- Oct 17, 2026 (11 days ago)
- Last release
- Jul 28, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- GPL-2.0
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from mbadali25
- 0.603score
crew-graph
mbadali25
Build and query a code graph of this repository with graphify, keeping it on the filesystem as graph.json and fresh on commit.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
crew-qa-standards
mbadali25
Harness, QA-review and environment standards plus a report-only audit (parallel tests, pinned linters CI really runs, gate rules that can fail, QA environment…
SkillAFreshness: A★ 2Claude Code +9 - 0.599score
crew-diagrams
mbadali25
Author architecture, process, sequence, ER and data-flow diagrams as Mermaid that pass a measured readability check (no crossing lines, nothing drawn through…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
crew-change
mbadali25
The change-request template, the ten questions a change board requires, and how each field maps onto ServiceDesk Plus, Jira and a local file.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
crew-debugging
mbadali25
Find the cause of a defect before proposing a fix - read errors, reproduce, check recent changes, gather evidence from this repo's code map and verification…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
crew-context
mbadali25
Manage context exhaustion - warn near the limit, write handoff notes, and resume work after a clear or compact.
SkillAFreshness: A★ 2Claude Code +9
Cite this page
crew-best-practices skill. Agent Mart. https://agentmart.dev/skills/mbadali25-crew-best-practices (last updated 2026-10-24)