SuperAPI AI Directory

claude-code-reference

Coding & development

View repository

Updated 10-15 16:44

About this skill

claude-code-reference

A knowledge base summarizing the official specifications of Claude Code itself. Use it as a reference when authoring skills / agents / rules / hooks / settings in this repository. For the specifications on the GitHub side, see github-docs refer to the skill (do not duplicate).

Exploration procedure

  1. Identify the topic most relevant to the user's task from the index below
  2. Read the corresponding reference/<topic>.md read.
  3. If you need an implementation template, sample/ and if you need execution commands, script/ refer to
  4. Follow links if there are related topics

reference/ index

Task examples Reference files
Write SKILL.md, set frontmatter,description put trigger words in reference/skills.md
context: fork run subagents with,allowed-tools settings reference/skills.md
.claude/agents/ define subagents in,tools/model/permissionMode specify reference/subagents.md
Call a subagent with subagent_type reference/subagents.md
Configure hooks,PreToolUse/PostToolUse/SessionStart events such as reference/hooks.md
hook JSON output, exit code, stdin input format reference/hooks.md
settings.json / settings.local.json edit reference/settings.md
permissions.allow / permissions.deny set reference/settings.md
env set environment variables with,enabledMcpjsonServers specify reference/settings.md
Look up slash commands, create custom commands reference/slash-commands.md
Add and configure MCP servers,.mcp.json write reference/mcp.md
MCP tool name naming convention mcp__server__tool reference/mcp.md
CLAUDE.md write, understand the memory hierarchy,@import use reference/memory.md
.claude/rules/ configure per-path rules with reference/memory.md

Guide to sample/ and script/

  • sample/ ── Working examples (minimal working samples for each feature)
  • script/ ── Collection of executable commands (hook scripts, config generation utilities, etc.)

How to update

If the official documentation URLs change or you need to reflect specification updates, update-reference Re-fetch and update each reference/*.md with the skill. At the beginning of each file, <!-- source: <URL> --> と <!-- 最終確認日: YYYY-MM-DD --> update.

Verification

After adding or updating reference/*.md, verify consistency with the following.

# 索引に記載されたファイルが実在するか確認
ls skills/claude-code-reference/reference/
  • For each row in the SKILL.md index table, the corresponding reference/<topic>.md must exist
  • At the top of each file, <!-- source: ... --> と <!-- 最終確認日: ... --> that there is
  • If there are files not listed in the index, add them to the index table in SKILL.md