Agent skill

git-hooks

CopilotKit pre-commit hook reference. Load automatically when the user mentions git hooks failing, pre-commit errors, lefthook issues, commit blocked, or "hooks don't work", or when user wants to commit/push anything Contains the full hook topology so debugging skips discovery and goes straight to diagnosis.

Stars 30,143
Forks 3,892

Install this agent skill to your Project

npx add-skill https://github.com/CopilotKit/CopilotKit/tree/main/.claude/skills/git-hooks

SKILL.md

CopilotKit Git Hooks Reference

Hook runner: Lefthook

The repo uses lefthook (not husky). The git hook at .git/hooks/pre-commit calls lefthook, which reads lefthook.yml at the repo root.

Config file: lefthook.yml

Pre-commit commands (run in parallel)

sync-lockfile          lint-fix          test-and-check-packages

1. sync-lockfile

  • Trigger: only when **/package.json files are staged
  • Command: pnpm i --lockfile-only
  • stage_fixed: true: auto-stages the updated lockfile
  • Fails if: pnpm can't resolve dependencies

2. lint-fix

  • Command: pnpm run lint --fix && pnpm run format
  • Expands to: nx run-many -t lint --projects=packages/** then prettier --write "**/*.{ts,tsx,md}"
  • stage_fixed: true: auto-stages any files it fixes
  • Fails if: lint errors that --fix can't auto-correct

3. test-and-check-packages ← most common failure

  • Command: pnpm run test && pnpm run check:packages
  • Expands to:
    1. nx run-many -t test — runs all unit tests across all packages
    2. nx run-many -t publint,attw --projects=packages/** — checks package exports and types are correctly declared
  • stage_fixed: false — does NOT auto-stage anything
  • Env: NX_TUI: "false" (plain output, no interactive UI)
  • Fails if:
    • Any test fails
    • publint finds malformed package.json exports
    • attw (Are the Types Wrong?) finds type declaration issues

Diagnosing a failure

The summary shows a boxing glove 🥊 for the failing command. The error itself does not show directly. To see the actual error:

bash
# Run only the failing command manually:
pnpm run test                          # if test-and-check-packages failed
pnpm run check:packages                # isolate publint/attw from test failures
nx run-many -t test --projects=<pkg>  # narrow to a specific package

# Re-run lefthook manually (without committing):
pnpm lefthook run pre-commit

npm scripts involved

Script Expands to
pnpm run lint nx run-many -t lint --projects=packages/**
pnpm run format prettier --write "**/*.{ts,tsx,md}"
pnpm run test nx run-many -t test
pnpm run check:packages nx run-many -t publint,attw --projects=packages/**

Expand your agent's capabilities with these related and highly-rated skills.

CopilotKit/CopilotKit

mcp-builder

DEPRECATED: This skill has been replaced by `mcp-app-builder`. Check if `mcp-app-builder` is available in the skills folder. If not, install it: `npx skills install mcp-use/mcp-use --skill mcp-app-builder` Use `mcp-app-builder` instead of this skill. Build Model Context Protocol (MCP) servers with mcp-use framework. Use when creating MCP servers, defining tools/resources/prompts, working with mcp-use, bootstrapping MCP projects, or when user mentions MCP development, tools, resources, or prompts.

30,143 3,892
Explore
CopilotKit/CopilotKit

mcp-apps-builder

**MANDATORY for ALL MCP server work** - mcp-use framework best practices and patterns. **READ THIS FIRST** before any MCP server work, including: - Creating new MCP servers - Modifying existing MCP servers (adding/updating tools, resources, prompts, widgets) - Debugging MCP server issues or errors - Reviewing MCP server code for quality, security, or performance - Answering questions about MCP development or mcp-use patterns - Making ANY changes to server.tool(), server.resource(), server.prompt(), or widgets This skill contains critical architecture decisions, security patterns, and common pitfalls. Always consult the relevant reference files BEFORE implementing MCP features.

30,143 3,892
Explore
CopilotKit/CopilotKit

chatgpt-app-builder

DEPRECATED: This skill has been replaced by `mcp-app-builder`. Check if `mcp-app-builder` is available in the skills folder. If not, install it: `npx skills install mcp-use/mcp-use --skill mcp-app-builder` Use `mcp-app-builder` instead of this skill. Build ChatGPT apps with interactive widgets using mcp-use and OpenAI Apps SDK. Use when creating ChatGPT apps, building MCP servers with widgets, defining React widgets, working with Apps SDK, or when user mentions ChatGPT widgets, mcp-use widgets, or Apps SDK development.

30,143 3,892
Explore
petekp/claude-code-setup

ubiquitous-language

Extract a DDD-style ubiquitous language glossary from the current conversation, flagging ambiguities and proposing canonical terms. Saves to UBIQUITOUS_LANGUAGE.md. Use when user wants to define domain terms, build a glossary, harden terminology, create a ubiquitous language, or mentions "domain model" or "DDD".

20 6
Explore
petekp/claude-code-setup

every-style-editor

This skill should be used when reviewing or editing copy to ensure adherence to Every's style guide. It provides a systematic line-by-line review process for grammar, punctuation, mechanics, and style guide compliance.

20 6
Explore
petekp/claude-code-setup

manage-codex

Autonomous Codex batch orchestrator. Use for "/manage-codex", "manage codex", "use codex", "dispatch to codex", or long-running Codex work.

20 6
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results