claude-code-mastery
Use when the user asks to "optimize CLAUDE.md", "create a new skill", "write a custom agent", "configure hooks", "manage context window", "set up MCP…
Skill by borghei
Chalk Labs
Need help deploying claude-code-mastery?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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/borghei-claude-code-mastery
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: writing, productivity, finance, 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
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/claude-code-mastery
What's inside
- Skill name
claude-code-mastery- Description
- Use when the user asks to "optimize CLAUDE.md", "create a new skill", "write a custom agent", "configure hooks", "manage context window", "set up MCP servers", "scaffold a skill package", "analyze token budget", "create subagents", "configure permissions", "set up worktrees", or "integrate Claude Code with editors". Covers Claude Code CLI mastery, skill authoring, context engineering, hooks automation, subagent creation, and development workflow optimization.
- License
- MIT
- Metadata
- author: borghei · domain: development-tools · updated: 2026-06-17 · version: 1.1.0 · category: engineering
- Instructions
- 95 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (12)
- SKILL.md
- agent-template.md · assets/
- skill-template.md · assets/
- hooks-cookbook.md · references/
- quick-reference.md · references/
- skill-authoring-guide.md · references/
- subagent-patterns.md · references/
- tool-reference.md · references/
- workflows.md · references/
- claudemd_optimizer.py · scripts/
- context_analyzer.py · scripts/
- skill_scaffolder.py · scripts/
SKILL.md (first lines)
# Claude Code Mastery Expert skill for Claude Code CLI -- CLAUDE.md optimization, skill authoring, subagent creation, hooks automation, and context engineering. **Keywords:** claude-code, claude-cli, CLAUDE.md, skill-authoring, subagents, hooks, context-window, token-budget, MCP-servers, worktrees, permission-modes, prompt-engineering, context-engineering, slash-commands ## Core Capabilities - **CLAUDE.md optimization** — audit, restructure, compress, and hierarchize config files for token efficiency. - **Skill authoring** — scaffold and write discoverable skill packages with correct layout and frontmatter. - **Subagent creation** — write `.claude/agents/<name>.md` files with a `tools` allowlist and a Markdown-body system prompt. - **Hooks automation** — wire `PreToolUse`/`PostToolUse`/`Stop` lifecycle scripts via `.claude/settings.json`. - **Context engineering** — measure and manage the context-window token budget across a codebase. ## When to Use - Authoring, structuring, or optimizing a CLAUDE.md file for any project. - Scaffolding a new skill package or creating a Claude Code subagent. - Configuring hooks for automated quality, security, or workflow steps. - Auditing and reducing context-window consumption. ## Clarify First Before scaffolding or optimizing, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used. - **Which task:** scaffold a new skill, optimize a CLAUDE.md, create a subagent, or analyze context budget (selects `skill_scaffolder.py` vs `claudemd_optimizer.py` vs `context_analyzer.py`). - **Target identity:** for a new skill: its name, domain, and one-line description; for optimization: the file or project path (the inputs the scripts require). - **Token budget:** the target ceiling (sets `--token-limit` and what counts as over-budget). Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top. ## Quick Start ```bash # Scaffold a new skill package python scripts/skill_scaffolder.py my-new-skill --domain engineering --description "Brief description" # Analyze and optimize an existing CLAUDE.md python scripts/claudemd_optimizer.py path/to/CLAUDE.md # Estimate context window usage across a project python scripts/context_analyzer.py /path/to/project # All tools support JSON output python scripts/claudemd_optimizer.py CLAUDE.md --json ``` ## Tools | Tool | Purpose | Command | |------|---------|---------| | `skill_scaffolder.py` | Scaffold a new skill package with correct structure + frontmatter | `python scripts/skill_scaffolder.py my-skill -d engineering --description "Does X"` | | `claudemd_optimizer.py` | Score a CLAUDE.md for structure, tokens, and redundancy with recommendations | `python scripts/claudemd_optimizer.py CLAUDE.md --token-limit 4000` | | `context_analyzer.py` | Estimate context-window consumption by file category with a budget breakdown | `python scripts/context_analyzer.py /path/to/project --max-depth 4` | All tools support `--json`. See **[references/tool-reference.md](references/tool-reference.md)** for full parameter tables and output formats. ## References Load the reference that matches the task — keep this file lean and pull detail on demand: - **[references/workflows.md](references/workflows.md)** — the five numbered playbooks: optimize a CLAUDE.md, author a skill, create a subagent, configure hooks, and manage the context budget. Read when executing any of those tasks step-by-step. - **[references/quick-reference.md](references/quick-reference.md)** — slash commands, permission modes, CLAUDE.md loading order, MCP servers, the troubleshooting table, and success criteria. Read for at-a-glance lookups or when debugging configuration. - **[references/tool-reference.md](references/tool-reference.md)** — full parameter tables and output formats for the three Python tools. Read when scripting the tools or interpreting their JSON output. - **[references/skill-authoring-guide.md](references/skill-authoring-guide.md)** — comprehensive reference for writing effective skills, from YAML frontmatter to structure. Read when authoring a skill in depth. - **[references/subagent-patterns.md](references/subagent-patterns.md)** — guide to creating and using subagents for parallel work and scoped tasks. Read when designing a subagent. - **[references/hooks-cookbook.md](references/hooks-cookbook.md)** — practical hook recipes for code quality, security enforcement, and workflow automation. Read when building hooks. **Templates:** [assets/skill-template.md](assets/skill-template.md), [assets/agent-template.md](assets/agent-template.md) ## Scope & Limitations **This skill covers:** - Authoring, structuring, and optimizing CLAUDE.md files for any project - Scaffolding new skill packages with correct directory layout and frontmatter - Creating and configuring Claude Code subagents with scoped tool access - Analyzing and managing context window token budgets across a codebase **This skill does NOT cover:** - Writing application source code or implementing business logic (see [senior-fullstack](../senior-fullstack/SKILL.md), [senior-backend](../senior-backend/SKILL.md)) - MCP server development or custom transport protocols (see [mcp-server-builder](../../engineering/mcp-server-builder/SKILL.md)) - Advanced prompt engineering techniques for LLM applications (see [senior-prompt-engineer](../senior-prompt-engineer/SKILL.md)) - CI/CD pipeline configuration or deployment automation (see [senior-devops](../senior-devops/SKILL.md), [ci-cd-pipeline-builder](../../engineering/ci-cd-pipeline-builder/SKILL.md)) ## Integration Points | Skill | Integration | Data Flow | |-------|-------------|-----------| | [senior-architect](../senior-architect/SKILL.md) | Architecture decisions inform CLAUDE.md structure sections | Architecture diagrams and patterns feed into the Architecture Overview section of CLAUDE.md | | [code-reviewer](../code-reviewer/SKILL.md) | Subagent creation for automated code review | Claude Code Mastery creates the agent `.md` file; Code Reviewer provides the review logic | | [senior-prompt-engineer](../senior-prompt-engineer/SKILL.md) | Prompt optimization for skill descriptions and agent instructions | Prompt engineering techniques improve YAML frontmatter trigger phrases and agent system prompts (the agent file body) | | [doc-drift-detector](../doc-drift-detector/SKILL.md) | Detects when CLAUDE.md drifts out of sync with the codebase | Context Analyzer output feeds drift detection; drift findings trigger CLAUDE.md optimization | | [context-engine](../../engineering/context-engine/SKILL.md) | Advanced context management strategies | Context Analyzer provides token budgets; Context Engine applies compression and prioritization | | [senior-secops](../senior-secops/SKILL.md) | Security hooks and permission mode configuration | SecOps policies define which tools to deny; Claude Code Mastery configures the permission allowlists |
From borghei/Claude-Skills, MIT.
More from borghei/Claude-Skills
- 0.819score
contract-review
The Glass Room
Contract review assistant analyzing agreements against playbooks.
SkillAFreshness: A★ 976Claude Code +9 - 0.819score
statute-analysis
The Glass Room
Statute and regulation interpretation framework.
SkillAFreshness: A★ 976Claude Code +9 - 0.819score
legal-red-team
The Glass Room
Adversarial verification for AI-generated legal content.
SkillAFreshness: A★ 976Claude Code +9 - 0.819score
legal-meeting-briefing
The Glass Room
Prepare structured briefings for meetings with legal relevance and track action items.
SkillAFreshness: A★ 976Claude Code +9 - 0.819score
nda-review
The Glass Room
Deep clause-by-clause NDA review from Recipient or Discloser perspective.
SkillAFreshness: A★ 976Claude Code +9 - 0.819score
nda-triage
The Glass Room
Rapid NDA screening with GREEN/YELLOW/RED classification.
SkillAFreshness: A★ 976Claude Code +9 - 0.819score
tech-contract-negotiation
The Glass Room
Negotiation frameworks for technology services agreements, B2B contracts, and professional services deals.
SkillAFreshness: A★ 976Claude Code +9 - 0.819score
mediation-analysis
The Glass Room
Dispute analysis and mediation preparation framework.
SkillAFreshness: A★ 976Claude Code +9 - 0.819score
vendor-due-diligence
The Glass Room
Assess IT vendors and third-party partners with multi-factor risk scoring and regulatory compliance checklists.
SkillAFreshness: A★ 976Claude Code +9 - 0.819score
whistleblower-compliance
The Glass Room
Audit whistleblower systems and draft compliant reporting policies.
SkillAFreshness: A★ 976Claude Code +9 - 0.818score
legal-canned-responses
The Glass Room
Generate templated responses for common legal inquiries with escalation detection.
SkillAFreshness: A★ 976Claude Code +9 - 0.816score
privacy-notice-generator
The Glass Room
Draft GDPR-compliant privacy notices for EU/EEA jurisdictions.
SkillAFreshness: A★ 976Claude Code +9
Signals
- Stars
- 976
- Forks
- 186
- Open issues
- 0
- Last commit (this folder)
- Oct 23, 2026 (13 days ago)
- Last release
- Oct 7, 2026 (29 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.1.0
- License
- MIT
- Repository
- github.com/borghei/Claude-Skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from borghei
- 0.611score
content-production
borghei
Full content production pipeline from blank page to publish-ready piece: research, briefs, drafting, SEO, readability, and editorial gates.
SkillAFreshness: A★ 976Claude Code +9 - 0.611score
copy-editing
borghei
Systematic copy editing through focused passes (the Seven Sweeps Framework) covering clarity, voice, proof, specificity, and friction removal.
SkillAFreshness: A★ 976Claude Code +9 - 0.611score
brand-guidelines
borghei
Build and enforce brand identity systems: visual identity, voice and tone, typography, color, and cross-channel consistency.
SkillAFreshness: A★ 976Claude Code +9 - 0.611score
content-humanizer
borghei
Transform AI-generated content into human-sounding writing via AI pattern detection, rhythm restoration, and authenticity scoring.
SkillAFreshness: A★ 976Claude Code +9 - 0.611score
content-strategy
borghei
Plan content strategy: content pillars, audience research, topic clustering, funnel mapping, and content audits.
SkillAFreshness: A★ 976Claude Code +9 - 0.611score
copywriting
borghei
Write persuasive marketing copy for homepages, landing, pricing, feature, and product pages using headline formulas, CTA frameworks, and objection handling.
SkillAFreshness: A★ 976Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get claude-code-mastery running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
claude-code-mastery skill. Agent Mart. https://agentmart.dev/skills/borghei-claude-code-mastery (last updated 2026-10-24)