From cardano-dev-skills
Installs a durable directive into CLAUDE.md that tells Claude to use the cardano-dev-skills skill set and bundled docs instead of training data. Idempotent, version-tracked, and shareable via git.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cardano-dev-skills:cardano-contextThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Install a durable, project-scoped directive that tells Claude to treat the
Install a durable, project-scoped directive that tells Claude to treat the
project as Cardano work and to consult the cardano-dev-skills skill set and
bundled documentation before relying on training data. The directive is written
into the project's CLAUDE.md, which Claude Code re-injects into every
conversation turn. It survives compaction, distributes via git so teammates
inherit it, and is plain text the user can inspect or edit.
/cardano-context.cardano-dev-skills plugin installed and wants its
behavioral guidance to apply automatically to a specific project.cardano-dev-skills plugin repo itself — adding
a self-referential block to that repo's CLAUDE.md is almost certainly not
what they want. Warn and confirm before proceeding..git, no .claude, no existing
CLAUDE.md). Confirm the path before creating CLAUDE.md from scratch.scripts/fetch-docs.sh.<!-- BEGIN cardano-dev-skills vN --> / <!-- END cardano-dev-skills vN --> markers.
Re-running at the same version is a no-op. Re-running with a newer canonical
version replaces the older block atomically.git add CLAUDE.md && git commit so the directive distributes.This block is the single source of truth. Treat it as one opaque string when matching, replacing, or writing.
<!-- BEGIN cardano-dev-skills v1 -->
## Cardano Development Context
This project involves Cardano blockchain development.
**Treat your training data as potentially stale for Cardano.** The ecosystem
moves fast: libraries get superseded (e.g., older SDK generations replaced by
current ones), CIP statuses change, governance landscape shifts. Before
recommending any library, tool, code pattern, or CIP behavior:
1. **Check the `cardano-dev-skills:*` skill set.** These skills encode current
best practices, decision criteria, and trade-offs. Bias toward invoking
one even when you feel confident — confidence is not evidence of currency.
2. **Search `${CLAUDE_PLUGIN_ROOT}/docs/sources/`** before relying on memory
or web search. The corpus is regularly refreshed from upstream and covers
Aiken, Plutus, current SDKs, all CIPs, on-chain tooling, and ~40 other
Cardano projects.
3. **Cite what you used** (skill name or doc path). If bundled docs and your
training conflict, prefer bundled docs.
Plugin: https://github.com/easy1staking-com/cardano-dev-skills
<!-- END cardano-dev-skills v1 -->
./CLAUDE.md (cwd-relative)./cardano-context path/to/dir),
resolve CLAUDE.md inside that directory and use that.pwd (Bash). Compute the absolute path so subsequent
messages reference an unambiguous location.If the resolved CLAUDE.md is the cardano-dev-skills plugin's own CLAUDE.md,
stop and ask the user to confirm. Heuristics that strongly suggest the plugin
repo:
.claude-plugin/plugin.json whose name is cardano-dev-skills.skills/cardano-context/ directory.${CLAUDE_PLUGIN_ROOT} if it is set.Do not silently proceed. Output: "This looks like the cardano-dev-skills plugin repo itself. Adding the directive here is probably a mistake. Confirm to proceed anyway, or pass an explicit path to a Cardano project."
Read the file (if it exists). Search for the literal substring <!-- BEGIN cardano-dev-skills. Three cases:
<!-- BEGIN cardano-dev-skills v1 -->). Report: "Cardano context already enabled (v1) at <path>. No
changes needed." Exit. Do not rewrite.v0). Use Edit to replace the
region from the BEGIN marker through the matching END marker
(inclusive) with the current v1 block. Treat any version mismatch as
"older" — the canonical block is always authoritative.Edit (append-by-anchor) or
Read + Write if Edit is awkward.Write to create CLAUDE.md containing only the v1
block plus a trailing newline.Always finish with a one-line summary stating:
created, appended, updated v0→v1 (or similar), or
no-op (already v1).Suggest: git add CLAUDE.md && git commit -m 'Enable cardano-dev-skills context' — so teammates inherit the directive on clone.hooks/check-docs.sh) detects the block on
startup and reports Cardano context active in this project. when present,
or nudges the user to run this skill when absent in a project directory.npx claudepluginhub cardano-foundation/cardano-dev-skills --plugin cardano-dev-skillsProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.