skills/init/SKILL.md
Set up the edify agent framework in a new project. Scaffolds CLAUDE.md, copies instruction fragments, creates agents/ directory structure, and writes version marker. Idempotent — safe to re-run.
npx skillsauth add ddaanet/agent-core initInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Set up the edify agent framework in a consumer project (marketplace install). Copies instruction fragments, scaffolds project structure, and writes version tracking.
This skill is for consumer projects only. The edify-plugin repository itself does not run /edify:init — it IS the plugin.
Read $CLAUDE_PLUGIN_ROOT/.claude-plugin/plugin.json and extract the version field. This is the authoritative version for .edify.yaml.
List all .md files in $CLAUDE_PLUGIN_ROOT/fragments/. These are the instruction fragments to copy.
Check and create each of the following if it does not already exist. Never overwrite existing files.
agents/ directoryagents/rules/ directory (fragment destination)agents/session.md — create with this content:# Session Handoff
**Status:** New project — no prior sessions.
## In-tree Tasks
(none)
## Next Steps
Begin work.
agents/learnings.md — create with this content:# Learnings
Institutional knowledge accumulated across sessions. Append new learnings at the bottom.
agents/jobs.md — create with this content:# Jobs
Track job-level context here.
Copy every .md file from $CLAUDE_PLUGIN_ROOT/fragments/ to agents/rules/.
For each fragment:
agents/rules/ — skip it (do not overwrite user content)Record the list of copied files and skipped files for the summary.
Two cases:
Case A — CLAUDE.md exists in project root:
@plugin/fragments/ references and rewrite them to @agents/rules/ (the local copies created in Step 4)@edify-plugin/fragments/ references and rewrite them to @agents/rules/Case B — No CLAUDE.md in project root:
$CLAUDE_PLUGIN_ROOT/templates/CLAUDE.template.mdCLAUDE.md in the project root@agents/rules/ references — no rewriting neededIf .edify.yaml already exists, do NOT overwrite it. Report that it was skipped.
If .edify.yaml does not exist, create it in a single write:
sha256sum for each fragment file that was copied in Step 4 (not skipped — skipped files are treated as potential user edits).edify.yaml with the version, policy, and computed hashes in one operation:# Edify plugin version tracking
# Run /edify:update when plugin updates to sync fragments
version: "<plugin version from Step 1>"
sync_policy: nag
synced_hashes:
agents/rules/communication.md: "<sha256>"
agents/rules/execute-rule.md: "<sha256>"
# ... one entry per copied fragment
Fragments that were skipped (already existed) do NOT get hash entries.
Report what was done:
/edify:init complete
Fragments: N copied, M skipped (already existed)
Structure: agents/session.md, agents/learnings.md, agents/jobs.md [created/existed]
CLAUDE.md: [created from template / N references rewritten / already existed, no refs found]
Version: .edify.yaml [created at vX.Y.Z / already existed]
Every operation checks before acting:
@plugin/fragments/ or @edify-plugin/fragments/ patterns found.edify.yaml: write only if missingRe-running /edify:init applies only missing pieces. It never destroys existing content.
tools
Manage git worktrees for parallel task execution. Triggers on "create a worktree", "set up parallel work", "merge a worktree", "branch off a task", or uses the `wt`, `wt merge`, or `wt-rm` shortcuts. Worktree lifecycle: creation, focused sessions, merge ceremony, cleanup, parallel task setup.
testing
Recall behavioral knowledge from project decisions. Triggers on "when to do X", situational patterns, or decision content for recognized situations. Invoke with "/when <trigger>".
tools
Sync edify fragments and portable justfile to match the current plugin version. Detects user-edited files and warns instead of overwriting. Use --force to overwrite conflicts.
testing
Write compact bash scripts using exec tracing pattern. Triggers when writing bash scripts with 3+ sequential commands. The exec 2>&1 + set -xeuo pipefail pattern eliminates echo statements via automatic command tracing, reducing script size by 40-60%.