本文へ移動
cccskills
無料GitHub で公開

my-skill-creator

Interactive guide for creating and improving portable Agent Skills (SKILL.md files) shared by Claude Code, Codex, and Cursor. Use when the user asks to create, update, validate, or fix a skill definition or says a skill does not trigger. Do NOT use for general coding tasks or requests that merely contain the word "create".

インストール方法を見る

含まれるファイル(9)

  • SKILL.md9.2 KB
  • agents/openai.yaml210 B
  • LICENSE.txt11.1 KB
  • references/compatibility.md4.2 KB
  • references/evaluating-skills.md6.2 KB
  • references/output-patterns.md1.8 KB
  • references/workflows.md2.1 KB
  • scripts/init_skill.py6.2 KB
  • scripts/quick_validate.py7.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Portable Skill Creator

Create one skill directory that Claude Code, Codex, and Cursor can load. Keep shared behavior in SKILL.md; add product-specific adapter files only where the clients have no common field.

References

Read only the references needed for the task:

  • Client compatibility: Read references/compatibility.md before choosing frontmatter, discovery paths, invocation controls, or product-specific features.
  • Workflow patterns: Read references/workflows.md for sequential and conditional workflows.
  • Output patterns: Read references/output-patterns.md for templates and examples.
  • Evaluation: Read references/evaluating-skills.md for eval cases, grading, and iteration.

Core principles

  1. Keep the skill portable by default. Use client-specific behavior only when the requested workflow cannot be expressed through the shared skill body.
  2. Keep instructions concise. Add only knowledge or procedure that a capable coding agent would not infer reliably.
  3. Match instruction strictness to risk. Use exact scripts for fragile operations and judgment-based guidance where several approaches are valid.
  4. Load detail progressively: name and description, then the SKILL.md body, then referenced files and scripts as needed.

Directory structure

skill-name/
├── SKILL.md              # Required: shared metadata and instructions
├── agents/
│   └── openai.yaml       # Optional: Codex UI, dependencies, and invocation policy
├── scripts/              # Optional: executable helpers
├── references/           # Optional: documentation loaded on demand
└── assets/               # Optional: templates and output resources

Do not add README.md, CHANGELOG.md, installation guides, or empty resource directories.

Frontmatter

Start with the open Agent Skills fields:

---
name: kebab-case-name
description: >-
  What the skill does. Use when the user asks for specific tasks or mentions relevant files.
  Do NOT use for adjacent tasks outside its scope.
---

Open standard fields

FieldRequirement
nameRequired. 1-64 lowercase letters, digits, and hyphens. Match the directory name.
descriptionRequired. 1-1024 characters. State what the skill does and when to use it.
licenseOptional. License name or bundled license file.
compatibilityOptional. 1-500 characters describing actual environment requirements.
metadataOptional. String-to-string metadata for external tooling.
allowed-toolsOptional and experimental. Do not assume every client enforces it.

Shared Claude Code and Cursor extensions

These fields are not part of the open specification, but both Claude Code and Cursor document them:

FieldBehavior and portability requirement
disable-model-invocationtrue makes the skill explicit-only in Claude Code and Cursor. Add the matching Codex policy shown below.
pathsLimits automatic discovery to matching file globs in Claude Code and Cursor. Codex has no documented equivalent.

For a manual-only skill, keep both declarations in the same directory:

# SKILL.md
disable-model-invocation: true
# agents/openai.yaml
policy:
  allow_implicit_invocation: false

Treat paths as a deliberate two-client enhancement. Put essential scope in description as well, because Codex ignores the field.

Claude Code extensions

Do not use these by default in a shared skill:

when_to_use, argument-hint, arguments, user-invocable, disallowed-tools, model, effort, context, agent, background, hooks, and shell.

When the user explicitly accepts a Claude Code dependency, document it in compatibility and read the current Claude Code documentation before using an extension. Do not place Claude Code-only keys in metadata to disguise them as portable fields.

Portable body content

  • Write instructions against capabilities, inputs, and outcomes rather than a client's tool names.
  • Refer to bundled files with paths relative to the skill root.
  • Read arguments from the user's current request. Do not rely on client-specific argument variables.
  • Do not use Claude Code dynamic command injection or CLAUDE_* environment substitutions by default.
  • Keep client invocation syntax out of workflow instructions. Claude Code and Cursor use /name; Codex uses $name.
  • State required executables, network access, and platform assumptions in compatibility or the body.
  • Separate network operations from local writes so a failed dependency stops with a clear error.

Creation process

1. Understand the use cases

Identify concrete requests that should and should not use the skill. Ask only when materially different interpretations remain after inspecting the repository and nearby skills.

2. Plan reusable contents

For each use case, determine whether repeated work belongs in:

  • scripts/ for deterministic operations;
  • references/ for detailed knowledge loaded only when needed;
  • assets/ for templates or files copied into outputs.

Avoid duplicating the same instruction in SKILL.md and a reference.

3. Choose the source directory

Follow the repository's existing convention first. Do not create a second copy of a skill.

  • In this dotfiles repository, create under home/dot_claude/skills/; the existing deployment links the same directory into Codex, and Cursor reads Claude skill directories directly.
  • In a repository without an established convention, prefer .agents/skills/ as the canonical directory for Codex and Cursor, then symlink the same skill directory under .claude/skills/ for Claude Code.
  • For global skills, apply the same arrangement under the user's home directory.

Verify the source-to-target mapping before creating or linking anything.

4. Initialize and edit

For a new skill, run:

uv run <skill-root>/scripts/init_skill.py <skill-name> --path <output-directory>

Replace <skill-root> with the absolute path of this skill directory.

Add only the resource directories that are needed:

uv run <skill-root>/scripts/init_skill.py <skill-name> --path <output-directory> \
  --resources scripts,references

For a manual-only skill, generate both clients' invocation controls together:

uv run <skill-root>/scripts/init_skill.py <skill-name> --path <output-directory> --manual-only

When editing an existing skill, skip initialization. Preserve useful resources and repository conventions.

5. Validate

Run the portable profile by default:

uv run <skill-root>/scripts/quick_validate.py <skill-directory>

It accepts the open fields plus the two shared Claude Code and Cursor extensions. It also checks that a manual-only skill has the matching Codex policy. Use --profile standard for the strict open specification or --profile claude only for an intentionally Claude Code-specific skill.

Do not create a .skill archive for repository-managed skills. The shared directory is the deployable unit.

6. Test and iterate

Test at least:

  • an obvious triggering request;
  • a paraphrased triggering request;
  • an unrelated request that should not trigger;
  • the workflow's main success path and material failure path.

For manual-only skills, verify explicit invocation in each installed client. For automatic skills, test description matching separately in Claude Code, Codex, and Cursor because routing behavior is client-specific.

For complex skills, compare representative tasks with and without the skill. Read references/evaluating-skills.md before building an evaluation set.

Writing guidelines

  • Use imperative instructions and explicit inputs, outputs, and stop conditions.
  • Put all trigger information in description; the body loads only after selection.
  • Prefer a short example over an abstract explanation.
  • Keep SKILL.md under 500 lines and move conditional detail to one-level-deep references.
  • Test every added script by running it.
  • Delete initializer placeholders that the finished skill does not need.

Troubleshooting

SymptomLikely causeChange
Skill does not appearWrong discovery directory or invalid frontmatterCheck the client path, symlink, and validator output.
Skill does not triggerVague or truncated descriptionPut the main use case and trigger words first.
Skill triggers too oftenScope is broadAdd concrete negative triggers or make it manual-only.
Manual-only behavior differs in CodexMissing or stale sidecar policySet policy.allow_implicit_invocation: false.
Behavior differs across clientsProduct-specific field or body syntaxRemove it or document the dependency and add an adapter.
Instructions are ignoredCritical steps are buriedMove them earlier and remove nonessential prose.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

my-agent

無料日本語概要

Delegate tasks to an external CLI agent (OpenAI Codex, Google Gemini, or Claude Code) for second opinions or parallel execution. Use when the user explicitly mentions "codex", "gemini", or "claude" or asks to delegate work to one of them (e.g., "codexで実行", "codexに聞いて", "geminiで実行", "Geminiに聞いて", "claudeで実行", "Claudeに聞いて", "run with codex", "ask gemini", "ask claude"). Also use when the user mentions Claude's "fable" model alias for delegation or consultation (e.g., "fableで実行", "fableに相談", "Fableに聞いて", "ask fable"). Do NOT use for general coding tasks that don't mention codex, gemini, claude, or fable.

Ynakatsuka/dotfiles42026年10月4日 更新

my-bulk-read

無料日本語概要

Delegate reading large or multiple files to the `bulk-read` command, which sends the files to a cheaper reader model and returns only its answer. Use when a question needs the content of a file over about 350 lines or of several files at once, when a PreToolUse guard denied an unbounded read, or when the user says "bulk read", "一括読み込み", or "まとめて読んで". Do NOT use for files you are about to edit, for subtle correctness reasoning such as concurrency bugs, or for short files that fit a bounded read.

Ynakatsuka/dotfiles42026年10月4日 更新

my-ccv

無料日本語概要

Manage Claude Code Viewer (CCV): preview in-progress CCV changes on ccv-preview, register HTML artifacts, download files, or schedule jobs via CCV local API. Use when user asks for CCV preview, ccv-preview, browser visual QA, UI/UX validation, CCV artifacts, CCV file download, or CCV scheduler jobs. Treat preview/プレビュー as the CCV app preview service first; use artifacts only when the user explicitly asks for artifact/dashboard/report HTML. Do NOT use for generic web app previews outside CCV, production deployment, Cloudflare config, or Anthropic remote triggers.

Ynakatsuka/dotfiles42026年10月4日 更新

my-code-write

無料日本語概要

Delegate writing predictable code to the `code-write` command, which has a cheaper writer model write the target file directly so the generated code never enters your context. Use for tests, scaffolding, fixtures, boilerplate, or a new file that copies an existing pattern, and when the user says "code write", "生成を委譲", or "雛形を書かせて". Do NOT use for design decisions, changes to public contracts or shared modules, edits inside an existing file that needs judgment, or logic with subtle correctness requirements.

Ynakatsuka/dotfiles42026年10月4日 更新

Disciplined diagnosis workflow for hard, intermittent, or multi-component bugs and performance regressions: inspect logs and existing evidence, build a feedback loop, test falsifiable hypotheses, instrument gaps, and verify the outcome. Use when the root cause is unclear, reproduction is unreliable, several causes or components are plausible, or performance has regressed. Do NOT use for obvious single-cause errors, straightforward configuration or syntax fixes, planned feature work, or broad architecture review. Diagnosis-only requests stop after reporting the root cause and evidence; apply a fix only when the user requested one.

日本語の概要は準備中です。原文の説明を表示しています。

Ynakatsuka/dotfiles42026年10月4日 更新

my-epic

無料

Manual-only orchestrator for medium-to-large software development. Turns a broad goal into PR-sized and operational nodes with verification gates, then coordinates approved execution across follow-up prompts. Activate only when the user explicitly invokes my-epic; once activated, keep orchestrating that epic for the rest of the session. Do NOT use for an uninvoked planning or implementation request, a single small bug fix, one obvious PR, pure code review, ordinary SDD work that fits in one spec/PR, or implementing an epic during the same first call that created it.

日本語の概要は準備中です。原文の説明を表示しています。

Ynakatsuka/dotfiles42026年10月4日 更新

Ynakatsuka のスキルをすべて見る

このスキルの問題を報告する