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

skill-lifecycle-manager

Manage Agent Skills across Codex, Claude Code, local/global/project roots, Skill Hubs, GitHub, skills.sh, and managed plugin caches. Use when searching, installing, updating, upgrading, syncing, merging, auditing, deduplicating, cleaning, packaging, publishing, validating, resolving upstream sources, choosing runtime or scope, or working with skill-upgrade, check_upstreams.ps1, Claude Code plugins, skills-lock.json, or skill-upstreams.json. Do not use for ordinary software-package upgrades or non-skill file cleanup.

インストール方法を見る

含まれるファイル(10)

  • SKILL.md12.6 KB
  • evals/evals.json13.0 KB
  • evals/files/sync-hub/projects/example/private-skill/SKILL.md137 B
  • evals/files/sync-hub/skills/01-agent-engineering/sample-skill/SKILL.md113 B
  • evals/files/sync-local/sample-skill/SKILL.md155 B
  • references/governance-and-reporting.md6.3 KB
  • references/runtime-adapters.md6.4 KB
  • references/skill-hub-operations.md5.7 KB
  • references/upstream-audit.md10.2 KB
  • scripts/check_upstreams.ps138.7 KB

SKILL.md(原文)

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

Skill Lifecycle Manager

Orchestrate skill work as one evidence-backed lifecycle. Keep source, installation, and ownership separate so an update to one copy does not silently overwrite another.

Core Contract

Maintain three boundaries throughout the task:

  • Source: where the skill came from, such as GitHub, skills.sh, a Skill Hub checkout, or a local repository.
  • Install: where a runtime loads the active skill, such as a global user root or project root.
  • Ownership: whether the path is user-maintained, project-maintained, or system/plugin-managed.
  • Runtime: which loader owns the active copy, such as Codex, Claude Code, an Agent Skills-compatible host, or more than one runtime.

Do not treat a Skill Hub checkout, _repos source, plugin cache, and global install as interchangeable even when their skill names match.

When evidence is incomplete, report known facts, candidate hypotheses, verification paths, and temporary mitigation. Do not present an unverified hypothesis as a cause or completed fix.

Start With Lifecycle Triage

Create a compact internal task card before acting:

  • Intent: discover, recommend, install, update, sync, merge, audit, cleanup, package, publish, validate, or create/edit.
  • Target: skill name, source URL, repository path, installed path, or topic.
  • Scope: project, global/user, source repository, managed root, or unknown.
  • Runtime: Codex, Claude Code, multiple runtimes, or unknown. Do not assume the runtime executing this skill is the runtime whose skills are being managed.
  • Destructive risk: none, overwrite, move, delete, cleanup, or ownership change.
  • Evidence needed: source, version, usage, quality, or scope proof.
  • Companion skill: find-skills, skill-installer, skill-creator, or no companion.

Proceed without asking when target, scope, and ownership are clear. Ask a short question only when a reasonable assumption could modify the wrong skill or cross an ownership boundary.

Route To The Relevant Reference

Read the complete relevant reference before performing that operation:

OperationRequired reference
Skill Hub pull, push, new-skill sync, junction, or index rebuildreferences/skill-hub-operations.md
Upstream comparison, skill-upgrade, check_upstreams.ps1, mirror, or local fast-forwardreferences/upstream-audit.md
Runtime roots, Claude Code skills/plugins, scope precedence, cache ownership, or reload behaviorreferences/runtime-adapters.md
Discovery, recommendation, install scope, quality audit, usage cleanup, package, publish, or report formatreferences/governance-and-reporting.md

Read more than one reference when the task crosses those boundaries. Do not load unrelated operational detail for a simple task.

Discover Stores And Ownership

Discover actual roots before editing. Common roots include:

  • User/global roots: ~/.agents/skills, ~/.codex/skills, or configured $CODEX_HOME/skills; Claude Code personal skills live under ${CLAUDE_CONFIG_DIR:-~/.claude}/skills.
  • Project roots: project-local skill directories, including .codex/skills and Claude Code .claude/skills roots. Claude Code can also discover nested .claude/skills directories in a monorepo.
  • Source checkouts: _repos, Skill Hub clones, submodules, or manual clones.
  • Managed roots: .system skills and plugin caches. Claude Code marketplace plugins are managed through claude plugin, not by editing ~/.claude/plugins/cache.
  • Evidence indexes: a repository _meta/skill-upstreams.json or a local source index such as ~/.skill-lifecycle/skill-upstreams.json; legacy ~/.agents/skill-upstreams.json remains supported. skills-lock.json is an inventory, not proof of upstream identity.

CLAUDE_CONFIG_DIR relocates Claude Code's configuration and personal skills; it does not relocate the runtime-neutral source index. Keep the default index under the operating-system user home unless -IndexPath is explicit. Likewise, ~/.agents/skills is a shared Agent Skills root, not proof that Codex owns or loads every contained skill. Never label an .agents install as Codex-owned without loader or configuration evidence.

Treat managed roots as read-only unless the user explicitly authorizes an override. Treat source checkouts as source evidence, not automatically as the active install target.

Keep an internal inventory:

SkillRuntime/scopeSourceActive installOwnerIntended action

Lifecycle Safety Sequence

Use this sequence for any operation that can change state:

  1. Inventory source, install, ownership, branch/ref, and dirty state.
  2. Verify source and scope with evidence appropriate to the operation.
  3. Compare behavior and files before deciding replace versus merge.
  4. Run a dry run when supported.
  5. Resolve target paths and prove they are strictly below the intended root.
  6. Create a timestamped backup before overwrite, mirror, move, or deletion.
  7. Apply only the requested, ownership-compatible change.
  8. Validate source and installed copies separately when both exist.
  9. Report source, target, backup, changed files, validation, and unverified items.

A path equal to the allowed root is not a valid child target. A path that only shares the root's text prefix is also not inside that root.

Create Or Edit Skills

Use skill-creator for SKILL.md design, progressive disclosure, scripts, references, and evals. This manager owns placement and lifecycle decisions:

  • Put broadly reusable, trusted workflows in a global/user root and a shared Skill Hub path when repository publication is intended.
  • Put project-specific conventions, private workflows, or experiments in a project root.
  • Avoid same-name duplicates across active roots unless the user explicitly wants scope-specific variants.
  • Validate the source copy before installing it, then compare source and installed hashes.
  • For Claude Code, use personal or project .claude/skills for standalone skills and a plugin only when namespaced distribution, versioned updates, or bundled agents/hooks/MCP are actually needed.

Discovery And Installation

Use find-skills or the ecosystem's discovery command instead of inventing a new search process. Use skill-installer when the requested installation flow matches it.

Before recommending or installing:

  • Check active roots for existing or competing skills.
  • Resolve the exact repository, path, branch/ref, and skill directory.
  • Read the candidate SKILL.md and inspect scripts or dependencies.
  • Record observed installs, stars, license, update activity, and source reputation; mark unavailable evidence as unavailable.
  • Choose the smallest scope that supports the repeated workflow.

Read references/governance-and-reporting.md for detailed evidence thresholds, quality checks, and report formats.

Upgrade And Merge

Never upgrade by name alone. Separate source updates from active-install updates:

  1. Resolve the exact installed path in a source index. If no verified mapping exists, run the source-discovery workflow and persist the result before deciding whether an upgrade exists.
  2. Verify upstream repository, skill subdirectory, branch/ref, and immutable comparison commit. A GitHub URL mentioned as a dependency or example is only a candidate, not source proof.
  3. Compare SKILL.md, references, scripts, assets, and evals.
  4. Back up the target.
  5. Mirror only when policy and evidence permit exact replacement.
  6. Merge when local and upstream behavior both matter.
  7. Validate and report the final source/install relationship.

Treat source mapping as reusable lifecycle state, not one-off research. Key local mappings by canonical installed path so two same-name skills cannot inherit each other's upstream. On each later audit, refresh the verified ref, record the observed commit, and compare the complete skill directory. Read references/upstream-audit.md for the bootstrap, verification, index, and repeat-audit workflow.

For Claude Code marketplace plugins, the plugin manager is the lifecycle authority. Inventory with claude plugin list --json, compare the declared marketplace/version/source, preserve the installed scope in claude plugin update <plugin> --scope <scope>, and follow the CLI's restart instruction; never mirror files into the versioned plugin cache. Read references/runtime-adapters.md before acting.

Do not invent lifecycle metadata or policy. source, repository, version, or similar frontmatter fields are useful only when actually present and remain candidate evidence until verified. Do not assume semantic versions, automatic polling, retry-count downgrades, a stale classification, or time-based thresholds unless the source index or user policy defines them.

When both versions changed, summarize behavior-level differences before merging:

  • Triggering and description
  • Tools and dependencies
  • Safety and destructive operations
  • Output contract
  • Scripts, references, assets, and evals

Read references/upstream-audit.md before using the bundled audit helper or applying a mirror.

Quality, Cleanup, And Publishing

For quality audits, check frontmatter, trigger specificity, progressive disclosure, referenced resources, script safety, dependencies, secrets, absolute-path leakage, and objective eval coverage.

For usage cleanup, do not use filesystem LastAccessTime as proof. Prefer explicit invocation evidence, session/tool logs, loadability metadata, then filesystem presence. Quarantine uncertain candidates instead of deleting them.

For publishing, complete and save the quality and secret/privacy audit before creating or copying the package. Scan file contents as well as names, including quoted JSON/YAML credential keys, environment assignments, tokens, private keys, personal paths, and identifiers. Treat an unreadable file or an unclassified finding as a failed gate; do not package first and repair the audit afterward. Then keep only allowlisted runtime-relevant skill files, remove generated outputs and private data, record provenance, update indexes, and deliberately synchronize source and installed copies.

Read references/governance-and-reporting.md for the full gates, evidence labels, and output templates.

Validation

Use the strongest relevant validation:

  • Parse frontmatter and required fields.
  • Run skill-creator validation.
  • Run bundled script self-tests or safe dry runs.
  • Parse JSON indexes and compare indexed counts with actual SKILL.md files.
  • Run git diff --check and inspect the intended file list.
  • For objective workflows, create or update evals/evals.json and forward-test representative cases against the prior version.

If tooling is unavailable, state that fact and perform a manual static check. Do not convert missing validation into a pass.

Common Report

Use a concise report proportional to the operation:

Intent:
Runtime and scope:
Source:
Target and scope:
Ownership:
Dry run or comparison:
Backup:
Changed files:
Validation:
Unverified:
Restart needed:

Use the operation-specific templates in references/governance-and-reporting.md when more detail materially helps.

Stop Conditions

Stop and request direction when:

  • Source trust is insufficient for installation or overwrite.
  • Local edits would be overwritten without a backup or merge rule.
  • A target cannot be proven strictly below the intended root.
  • The target is system/plugin-managed without explicit override authority.
  • A material merge conflict changes behavior and intent does not resolve it.
  • Credentials, admin approval, license acceptance, or interactive authentication are required.
  • The requested conclusion is stronger than the evidence.

Report facts, hypotheses, validation paths, and temporary mitigation instead of guessing past a stop condition.

レビュー

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

同じリポジトリのスキル

概要と使いどころ

使用 AACT (Aggregate Analysis of ClinicalTrials.gov) PostgreSQL 数据仓库进行批量、历史、聚合性临床试验数据挖掘。Use this skill when the user requests bulk SQL analysis over the full clinical trials data warehouse — historical trial trends, disease landscapes, similar-design matching, or multi-year aggregations across hundreds of thousands of NCT records. 触发场景包括:AACT 查询、临床试验批量分析、PostgreSQL 试验数据、全量 NCT 检索、试验数据挖掘、历史试验分析、clinical trials data warehouse、SQL trials、bulk trial analysis、disease landscape、试验设计相似性匹配、跨年度聚合、sponsor/phase/country 多维统计。**与 clinical-trials-v2 差异**:本 skill 走批量 SQL · 离线大数据(PostgreSQL);v2 走实时 API · 单查询。两者互补:单条 NCT 实时状态用 v2,百万级历史挖掘用本 skill。支持云端公共 PostgreSQL(aact-db.ctti-clinicaltrials.org · 零部署)和每日 dump 本地还原(高性能 · 离线)两种连接方式,自动检测优先用本地。跨平台(macOS/Linux/Windows)参数化 SQL 防注入,read-only 强制保护。

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

EthanYoQ/Skill-hub112026年10月5日 更新

使用 AACT (Aggregate Analysis of ClinicalTrials.gov) PostgreSQL 数据库进行大批量临床试验历史分析与数据挖掘。触发场景包括:AACT 查询、临床试验批量分析、PostgreSQL 试验数据、全量 NCT 检索、试验数据挖掘、clinical trials data warehouse、疾病领域全景分析、设计相似试验匹配、跨年度试验趋势聚合。本 skill 通过 SQL 接口处理百万级试验记录,支持云端公共 PostgreSQL 服务(aact-db.ctti-clinicaltrials.org)和每日 dump 本地还原两种连接方式,自动检测并优先使用本地高性能模式。

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

EthanYoQ/Skill-hub112026年10月5日 更新

Use when work produces a deliverable, factual claim, dataset, code change, decision, publication, deployment, automation, or irreversible action whose failure would matter; when the user asks for a quality gate, acceptance criteria, QA, completeness, validation, audit, evidence, preflight, release readiness, or a definition of done; or before claiming completion on medium- or high-risk work. Automatically decide whether a formal gate is warranted, derive task-specific pass/fail criteria, gather evidence, and block unsupported completion. Make sure to use this skill even when the user does not say "quality gate" if consequential work needs acceptance criteria or completion evidence. Skip formal gating for trivial, reversible, low-impact requests.

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

EthanYoQ/Skill-hub112026年10月5日 更新

Create a changeset file in .changeset/ that describes a user-facing change for the release notes

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

EthanYoQ/Skill-hub112026年10月5日 更新

Add a new competitor to the AI Visibility Tool Directory — researches the tool, generates data, takes a screenshot, and inserts into the codebase

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

EthanYoQ/Skill-hub112026年10月5日 更新

add-lang

無料

Add tree-sitter language support to codegraph end-to-end — wire the grammar + extractor, write tests, then benchmark extraction quality and retrieval value on 3 popular real-world repos. Use when the user runs /add-lang <language> or asks to add/support a new language (e.g. Lua, Elixir, Zig, OCaml) in codegraph.

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

EthanYoQ/Skill-hub112026年10月5日 更新

EthanYoQ のスキルをすべて見る

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