agentsclimarketplace

Init claude

Skill ultish/init-claude/skills/init-claude

This skill should be used when the user asks to "create a CLAUDE.md", "write a CLAUDE.md", "generate a CLAUDE.md", "init CLAUDE.md", "set up agent instructions for this repo", "improve/audit our CLAUDE.md", or wants project-specific coding-agent guidance derived from an existing codebase or an interview. Handles both existing projects (analyze code, verify facts, merge) and new/sparse projects (interview the user about purpose, boundaries, and build environment).From its SKILL.md

Install
npx -y skills add ultish/init-claude --skill init-claude

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

7.8 KB, as published. Nobody here has run it

init-claude — generate and maintain a lean, project-specific CLAUDE.md

Produce a CLAUDE.md whose value is verified, project-specific facts an agent cannot infer — how to build/test/run, service boundaries, what is off-limits, what "done" means — plus a small, shared set of behavioral rules. Optimize for signal per token: the file loads into every context, so restraint is a feature.

Read references/claudemd-anatomy.md for the philosophy (the ~60% facts / ~40% behavior split and the failure modes). The two operating modes below cover the mechanics.

First: pick the mode

Inspect the target repo (default to the current working directory unless the user names another):

  • Existing project — there is real source, a build manifest, or CI config → Mode A. Derive facts from the code, then confirm.
  • New or sparse project — empty, scaffold-only, or no build/CI signal → Mode B. Interview the user.
  • A CLAUDE.md already exists — run Mode A's analysis regardless, but in merge posture: preserve hand-written content, propose only additions and corrections, and show a diff before writing (see analyzer-checklist "Merge, don't clobber").

State the chosen mode to the user in one line before proceeding.

Mode A — existing project (analyze → verify → confirm → merge)

Work through references/analyzer-checklist.md. In brief:

  1. Gather facts from highest-signal sources first: CI config (it is the definition of done), then build manifests/task runners, then containers/compose, then a sample of real source for conventions. Detect the "Don't touch" list (generated code, migrations, lockfiles, vendored deps) and ownership (CODEOWNERS, schema/contract dirs).
  2. Verify before writing. Confirm every command exists — package.json script key present, make -n <target> resolves, <tool> --help runs. Do not run full builds/tests/deploys; existence checks only. Mark anything unverifiable with # UNVERIFIED — rather than presenting a guess as fact.
  3. Confirm with the user. Present the derived facts — especially boundaries, the "Don't touch" list, and definition of done — and ask only about what analysis could not determine (the why behind boundaries, what is truly off-limits). Auto-generated confident-but-wrong facts are worse than no facts.
  4. Editorial pass. Cut the obvious and the CI-duplicating; keep the non-obvious and load-bearing. Target a tight file.
  5. Write / merge using assets/claude-md-template.md for structure. If a CLAUDE.md exists, merge into it and show the diff first.

Mode B — new or sparse project (interview → propose → confirm)

Work through references/interview-guide.md. In brief:

  1. Pre-fill from signals first. Even a sparse repo usually has a Dockerfile, a manifest, or a CI stub — infer drafts from those so the interview confirms rather than interrogates. Never fabricate an environment fact.
  2. Interview in groups (use AskUserQuestion, batch ~4 related questions): purpose & boundary; build/test/run environment (the reusable "profile" — language & version, build tool, test/lint/run commands, deploy target, air-gap endpoints, any reference project to mirror); definition of done & where decisions are recorded.
  3. Draft, then confirm the pre-filled values before saving. Verify any command that can be checked. Record unknowns as TBD — to provide, don't block on them.
  4. Write using assets/claude-md-template.md.

Profiles (optional pre-fill)

When --profile <DIR|URL|git-url> is passed, load a profile — a JSON file of reusable, org/team-level facts for a class of service (stack, commands, deploy, release mechanism, conventions, don't-touch, behavioral-rules placement). Write one per archetype (kotlin-service, node-web) so a fleet of repos pre-fills a consistent CLAUDE.md instead of drifting. A profile is a head start, not gospel: match one archetype to this repo, pre-fill the draft, then confirm the values, verify each command still exists here, and fill the repo-specific gaps. It composes with both modes. For a git URL, prefer a host-aware skill (it owns GitLab auth) or a shallow clone. See references/profiles.md and assets/profile.example.json.

Output shape

Order every CLAUDE.md facts-first, behavior-last, using assets/claude-md-template.md:

  1. What this is (one paragraph: purpose + boundary).
  2. Build / test / run (verified commands; definition of done).
  3. Architecture & boundaries (owns / depends-on / entry points).
  4. Don't touch (each with a reason).
  5. Conventions (observed, not aspirational).
  6. Releasing (how versions/tags/changelog are produced here — discovered, not assumed; see the hard rule below).
  7. Behavioral rules — from assets/claude-behavioral-rules.md.

Behavioral rules: shared, not duplicated

assets/claude-behavioral-rules.md holds portable rules (uncertainty handling, don't-weaken-existing-behavior, stay-in-scope, finish with an accounting) with no project facts. Place them one of two ways:

  • Multi-repo org (the common case for many services): keep ONE copy in a shared location and end each CLAUDE.md with @path/to/claude-behavioral-rules.md. One edit updates every repo; this is what prevents drift. Recommend this whenever the user has more than one repo.
  • Single repo: paste the rules block into the bottom of CLAUDE.md.

Ask which placement fits before finalizing, and copy claude-behavioral-rules.md into the shared location (or inline it) accordingly.

Hard rules

  • Verify before writing. Never write a command that hasn't been confirmed to exist. A CLAUDE.md that names a missing command trains distrust of the whole file.
  • Merge, never clobber. Preserve hand-written intent; show a diff before overwriting anything.
  • Keep it lean. The file loads into every context. Cut anything an agent can trivially discover or that CI already enforces.
  • Facts over aspirations. Describe what the code is, not what someone wishes it were.
  • Discover the release mechanism; never assume manual version bumps. If CI owns tagging (e.g. a GitLab pipeline tags on merge to main), the CLAUDE.md must tell the agent NOT to hand-edit versions or tags, and the changelog duty follows the repo's actual mechanism (a Changelog:/conventional-commit trailer, or an [Unreleased] entry). See references/analyzer-checklist.md → "Release & changelog mechanism".
  • Confirm, don't assume. Present derived/inferred facts for confirmation before saving.

Resources

References (load as needed):

  • references/analyzer-checklist.md — Mode A: where to find each fact, verify, merge, editorial pass.
  • references/interview-guide.md — Mode B: the question groups and pre-fill flow.
  • references/claudemd-anatomy.md — what belongs, what doesn't, failure modes, multi-repo roll-out.
  • references/profiles.md — the --profile pre-fill: schema, fetch (dir / git clone / URL), match, apply.

Assets (copy into the target repo):

  • assets/claude-md-template.md — the per-repo CLAUDE.md skeleton.
  • assets/claude-behavioral-rules.md — the shared, importable behavioral rules.
  • assets/gitlab-changelog-config.yml — reference GitLab-native changelog setup.
  • assets/profile.example.json — a filled example profile.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.