본문으로 건너뛰기
cccskills
무료GitHub에 공개

local-skill-factory

Create project-local Claude Code skills (.claude/commands/) in any project directory. Analyzes the project's tech stack, structure, and conventions, then generates tailored local skills (custom slash commands) scoped to that project. Like /my-skill-factory but output stays local — no marketplace installation. Trigger patterns: - local skill / local command / project skill / project command - create local skill / make local skill / add local command - "make a skill for this project" / "create command for this repo" - suggest skills / suggest commands / what skills would help - update local skill / edit local command / modify project skill - /local-skill-factory

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

실행 점수 미검증

설치 방법 보기

포함된 파일(2)

  • SKILL.md10.8 KB
  • references/local-command-format.md5.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Local Skill Factory

Create project-scoped Claude Code commands (.claude/commands/) in any project directory. Analyzes the project first, then generates tailored skills that live only in that project.

Constraints

  • Output goes to <project-dir>/.claude/commands/<name>.md — never to the marketplace
  • Always analyze the project before creating a skill — understand the tech stack, structure, and conventions
  • Use $ARGUMENTS placeholder in commands for user input
  • Keep command files focused — one responsibility per command
  • Do NOT commit or push to git unless the user asks
  • Do NOT create CLAUDE.md unless the user asks or the skill specifically needs project-wide instructions
  • Read references/local-command-format.md for the exact file format, patterns, and examples

Path discipline (applies to every command you generate)

When writing the body of a generated .claude/commands/<name>.md, never embed hardcoded operator-specific or OS-specific absolute paths. Generated commands are checked into the project and run on every teammate's machine — paths like /Users/<your-name>/... or D:\Shared\... break the moment anyone else uses them.

Forbidden in generated command bodies (and in any references/, scripts/, or assets/ you produce alongside them):

  • Operator home paths: /Users/<name>/..., /home/<name>/..., C:\Users\<name>\....
  • Machine-specific roots: D:\..., /private/..., /mnt/<host>/....
  • Any path that assumes a specific clone location or development machine.

Use instead:

  • $ARGUMENTS for user-supplied input.
  • Project-relative paths from the project root (no leading /), e.g. src/lib/foo.ts.
  • ~ or $HOME when a path inside the user's home is genuinely required.
  • Runtime resolution (git rev-parse --show-toplevel, $(pwd)) when the project root is needed inside a script.
  • Documentation examples that show a concrete path must be clearly framed as examples ("for example, on macOS this typically resolves to ~/..."), not as the authoritative path.

Pre-save verification. Before writing the generated file, grep its contents (and any companion files) for path leaks and clean up any non-example hits:

grep -nE '/Users/|/home/|/private/|D:\\\\|C:\\\\' \
  "<project-dir>/.claude/commands/<name>.md"

Each remaining hit must either be (a) a documentation example explicitly framed as "example" or "typically", or (b) replaced with $ARGUMENTS, a project-relative path, ~/$HOME, or runtime resolution. Anything else is a bug — fix it before saving.

Workflow

Step 1: Analyze Project

Before creating any skill, understand the project:

  1. Read key files to identify the tech stack:
    • package.json, *.csproj, *.sln, Cargo.toml, go.mod, pyproject.toml, Gemfile, pom.xml, build.gradle
    • docker-compose.yml, Dockerfile, .github/workflows/
    • Existing CLAUDE.md, .claude/commands/, .claude/settings.json
  2. Scan directory structure — ls the top-level and key subdirectories
  3. Identify conventions — naming patterns, test framework, linting config, CI/CD
  4. Note existing local skills — check .claude/commands/ to avoid duplicates

Summarize findings in 3-5 bullet points before proceeding.

Step 2: Gather Requirements

If the user described what they want, confirm understanding. If vague, ask 2-3 focused questions:

  1. What should the skill do? (give 1-2 concrete examples of use)
  2. What triggers it? (example phrases or slash command name)
  3. What's the output? (code changes, terminal output, report, file creation?)

Skip if the user already provided enough detail.

Step 3: Write BDD Scenarios

Write 3-5 Given/When/Then scenarios covering:

  1. Primary use case
  2. One secondary path
  3. An edge case
Scenario: <descriptive name>
  Given <project context>
  When <user invokes the command>
  Then <what the command produces>

Step 4: Design the Command

Decide:

  • Command name — short, descriptive, kebab-case (becomes /project:<name>)
  • Arguments — what $ARGUMENTS represents
  • Complexity — single file vs needs CLAUDE.md integration
  • Project-specific content — what conventions, paths, tools to encode

Read references/local-command-format.md for format details and patterns.

Step 5: Create Files

  1. Create .claude/commands/ directory if it doesn't exist:

    mkdir -p "<project-dir>/.claude/commands"
    
  2. Write the command file at <project-dir>/.claude/commands/<name>.md

  3. Run the path-discipline grep from the "Path discipline" section above on the newly written file (and any companion files under .claude/). Replace any non-example operator-specific or OS-specific path before continuing.

  4. If the skill needs project-wide persistent instructions (rare), suggest updating CLAUDE.md

  5. Confirm: "Created /project:<name> — try it with /<name> in this project."

Step 6: Verify

List existing commands to confirm:

ls "<project-dir>/.claude/commands/"

Read back the created file to verify correctness.

Suggesting Skills

When the user asks "suggest skills for this project" or isn't sure what to create:

  1. Complete Step 1 (Analyze Project)
  2. Based on the tech stack and structure, suggest from this catalog:

Common Local Skill Patterns

Project TypeSuggested Skills
Any projectreview (code review against conventions), test (run tests with context), doc (generate/update docs)
Web frontend (React, Vue, Angular, Svelte)component (scaffold component), style-guide (enforce design system)
.NET / C#api-endpoint (scaffold endpoint), migration (EF Core migration workflow), build (build + test + analyze)
Node.js / TypeScriptapi-route (scaffold route), lint-fix (fix lint issues with context)
Pythoncli-command (scaffold CLI command), notebook (create analysis notebook)
Monorepopackage (scaffold new package), deps (dependency analysis)
DevOps / Infrastructuredeploy (deployment checklist), incident (incident response template)
API projectendpoint (scaffold endpoint), client (generate API client), test-api (API integration tests)

Present 3-5 most relevant suggestions with:

  • Command name
  • What it does (1 sentence)
  • Example usage

Let the user pick which ones to create.

Updating Existing Local Skills

When the user wants to modify a local skill:

  1. Read the existing .claude/commands/<name>.md
  2. Understand current behavior
  3. Identify what changes (added, modified, removed)
  4. Edit the file
  5. Confirm changes

Advanced: CLAUDE.md Integration

For skills that need persistent project context (not just a command):

  • CLAUDE.md — project-wide instructions loaded every session
  • .claude/commands/<name>.md — specific slash command

Example: A review command might need CLAUDE.md to define coding standards, while the command itself orchestrates the review workflow.

Only create/modify CLAUDE.md when:

  • The skill needs conventions that apply to ALL interactions (not just this command)
  • The project doesn't have a CLAUDE.md yet and would clearly benefit from one
  • The user explicitly asks

Retrospective

After completing the workflow, reflect on the execution session:

  1. Consider: Were there mid-session corrections? Rejected outputs? Errors?
  2. Ask the user: "Quick feedback on this run? (1-5 rating, note any issues, or press enter to skip)"
  3. If the user provides feedback OR if corrections/issues occurred: a. Create feedback/ directory next to this SKILL.md if it does not exist (resolve via git rev-parse --show-toplevel from the skill's own directory, or use the path the install script registered) b. Read feedback/log.md (create with # Feedback Log header if it does not exist) c. Prepend a new entry using the log format from the skill improvement guide d. Fill in: timestamp, skill version, task description, outcome, corrections, issues, user note
  4. If the user skips AND no issues occurred, end without recording.

Behavior Scenarios

Scenario: Create a new local skill for the current project
  Given the user is working in a project directory
  When the user describes what local skill they need
  Then analyze the project structure and tech stack,
       gather requirements, write BDD scenarios,
       create .claude/commands/<name>.md with a tailored prompt template,
       and confirm the skill is available as /project:<name>

Scenario: Suggest useful skills for the current project
  Given the user is working in a project but isn't sure what local skills would help
  When the user asks "suggest skills for this project"
  Then analyze the project type, structure, and workflows,
       and propose 3-5 relevant local skills with names, descriptions, and example usage

Scenario: Update an existing local skill
  Given a local skill already exists in .claude/commands/
  When the user wants to modify or extend it
  Then read the existing skill, identify changes needed,
       update the file, and confirm the modifications

Scenario: Project has no .claude directory yet
  Given the project directory has no .claude/commands/ structure
  When the user invokes the factory
  Then create the .claude/commands/ directory and the skill files

Scenario: Create complex skill with CLAUDE.md integration
  Given the local skill needs project-wide persistent context
  When the skill requires conventions beyond a single command file
  Then create the command file AND suggest or create relevant CLAUDE.md sections

Scenario: Generated command must not contain hardcoded absolute paths
  Given the user requests a new local skill
  When the factory writes the .claude/commands/<name>.md body or any companion file
  Then no operator-specific path (/Users/..., /home/..., C:\..., D:\..., /private/...)
       appears except as an explicit documentation example
  And before saving, the path-discipline grep is run and any non-example hits are
       replaced with $ARGUMENTS, a project-relative path, ~/$HOME, or runtime resolution

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Run a multi-model adversarial mutual review with facilitator synthesis: 2+ panelists (different model families where possible — use codex-server / codex-cli for the external-family seat) independently answer, adversarially critique each other across rounds, and the main session acts as facilitator, synthesizing agreements, live disagreements, and calibrated confidence into one answer. Use ONLY on high-stakes, hard-to-reverse claims, designs or decisions, and only when the user EXPLICITLY asks to debate or adversarially review with multiple models — "discuss with Opus and Codex", "red-team this", "devil's advocate", 敵対的レビュー, 相互レビュー, 多モデル討論, 議論させて. A full run costs ~6 subagent/CLI dispatches: state the panel size and round count and get a go-ahead before launching. Where the Workflow tool is available, run the panel as a Workflow (judge-panel / adversarial-verify) instead of ad-hoc fan-out. Do NOT self-trigger on a bare "are you sure?" — that is a cue to OFFER the panel, not to run it.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hideki5123/agent-skill-set22026년 10월 21일 업데이트

Orchestrate multiple coding-agent sessions (Claude Code, Codex, Gemini) over the mcp_agent_mail MCP server, observe their progress on a recurring auto-loop, and prevent inconsistencies (file/edit conflicts and contradictory decisions) between concurrent tasks. Auto-manages the agent-mail server, derives the shared room key from the git repo, and runs either as the orchestrator/observer or as a participating worker. Handles the operational details (server startup, room key, reservation conventions) so the user does not have to remember them. Use when coordinating several agent sessions on different tasks at once, watching a swarm of sessions for conflicts, or wiring already-running sessions into a shared coordination room. Trigger phrases: "agent-swarm", "/agent-swarm", "orchestrate agents", "orchestrate multiple claude sessions", "coordinate sessions", "watch for conflicts between agents", "observe the swarm", "prevent inconsistency between sessions", "multi-agent observe", "複数セッションを協調", "エージェント協調", "セッション間の不整合監視", "スウォーム監視", "複数のClaudeを束ねて".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hideki5123/agent-skill-set22026년 10월 21일 업데이트

Generate AGENTS.md (cross-tool agent context — Codex CLI, Aider, Cursor, etc.) and wire CLAUDE.md as a symlink so Claude Code reads the same file. Delegates content generation to Claude's built-in /init when needed, then renames + symlinks. Idempotent. Triggers — /agents-init, "generate agents.md", "create agents.md", "share claude and codex context", "set up agents file", "init agents", "agents-init", "cross-tool agent context", "wire claude and agents".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hideki5123/agent-skill-set22026년 10월 21일 업데이트

Drive an already-running, LOGGED-IN Chromium browser on macOS via AppleScript — navigate, click, fill forms, scroll, and extract page content from the user's REAL session, with the browser left open and NO profile copy and NO restart. Use when the task needs the existing logged-in session (cookies, auth, current tabs) reused as-is. Trigger phrases: "chrome-use", "ブラウザから取得", "ログイン済みの Chromeで", "ブラウザを操作して", "このページ読んで", "Xのスレッド読んで", "ログインしたまま取得", "自分のセッションでスクレイプ", "read this page in my browser", "scrape with my session", "drive my chrome", "execute JS in my (logged-in) browser", "automate my logged-in browser". Chromium family (Chrome default; Brave/Edge/Arc/Vivaldi via --app). NOT for isolated/throwaway automation where login reuse is unneeded — use playwright-cli for that. macOS only.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hideki5123/agent-skill-set22026년 10월 21일 업데이트

codex-cli

무료

Run OpenAI Codex CLI from the terminal for batch / one-shot `codex exec` invocations with output captured to an `-o` file. Use for fire-and-forget runs, scripted CI, code review batches (`codex review`), and resuming a specific session by id (`codex exec resume`). Always use this skill instead of `mcp__codex__codex` and `mcp__codex__codex-reply` MCP tools — CLI is faster and more capable. For streaming UX, multi-turn dialogues that need live state, structured (JSON schema) output, attaching images, or programmatic event handling → **use codex-server instead**. codex-server uses the user's ChatGPT subscription via Codex App Server and decoupled async invocation that bypasses the Bash 2-minute timeout entirely. Trigger patterns (batch-only — chat/streaming triggers belong to codex-server): codex-cli / codex CLI / codex exec / codex review / codex resume / codex fork / batch + {codex, gpt} / one-shot + {codex, gpt} / non-interactive + codex / codex {to a file, -o, output file, captured output} / CI + {codex, gpt} / scripted + {codex, gpt} / fork codex session / resume codex session by id

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hideki5123/agent-skill-set22026년 10월 21일 업데이트

Run OpenAI Codex via the Codex App Server (JSON-RPC-over-stdio) for streaming multi-turn chat sessions with persistent threads, structured output, image input, and rich event streams. Default entry point for ChatGPT/GPT/Codex-like conversations from the terminal. Uses the user's ChatGPT subscription (Plus / Pro / Team) exclusively via `codex login` — never consumes OPENAI_API_KEY billing, by design. Implementation: TypeScript on deno with npm:@openai/codex-sdk; spawns the existing system codex binary. Decoupled async invocation: every turn returns turn-id in <1 s; the actual SDK work runs in a detached worker that streams to per-turn files under ~/.codex-server/turns/<turn-id>/ — Bash's 2-min timeout never applies. Prefer this over codex-cli for streaming UX, multi-turn dialogues that need live state, structured (JSON schema) output, attaching images, or programmatic event handling. Use codex-cli only for one-shot batch invocations that pre-capture to an -o file. For OpenAI Platform API calls specifically (embeddings, image generation, audio, moderation, batches, files) — not open-ended chat — use openai-cli instead; that path bills OPENAI_API_KEY, this one uses the ChatGPT subscription. Trigger patterns (match any variation): codex / codex-server / codex app server / codex app-server / openai / open ai / OpenAI / chatgpt / chat gpt / ChatGPT / GPT / ask gpt / chat with gpt / gpt session / codex session / streaming chat / multi-turn chat / multi turn chat / second opinion / cross-check / cross check / ai pair programming / another AI / external AI / ask another model / get GPT's take / what does openai think / show me what gpt thinks / structured output from gpt / json schema gpt / resume codex thread / continue codex conversation / continue codex session / /codex-server

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

hideki5123/agent-skill-set22026년 10월 21일 업데이트

hideki5123의 스킬 모두 보기

이 스킬의 문제 신고