agentleFS
roborracleroborracle/agent-workflow-kit/skills/init-project/SKILL.md

init-project

Skill0 starsChanged 3 months agoMITView on GitHub

Initialize a new project with Claude Code .claude/ directory, CLAUDE.md, framework-specific rules, and standard configuration (set up project, init, bootstrap, new project).

49 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use addskill, apply-firmware and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ryanportfolioSkill

    addskill

    Create, import, update, or install repo or personal skills: runtime ownership, resources, discovery checks.

    Also in 6 projects that use this

  • ryanportfolioSkill

    apply-firmware

    Bring current folder (plain folder, existing repo, old or partial firmware copy) up to full Harness Firmware in place. Mirror external repo → adopt-repo.

    Also in 6 projects that use this

  • +10 more from ryanportfolio

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check which stack this project uses and copy the matching framework pack from ~/.claude/skills/init-project/packs/ into .claude/rules/.

    line 24
  2. Distinctive:

    Only install ONE framework pack per project.

    line 40
  3. Very specific:

    Create .claude/CLAUDE.md from the template in ~/.claude/rules/documentation-protocol.md § "Project CLAUDE.md template": a thin reference …

    line 43
  4. Very specific:

    Ensure .claude/settings.local.json is in .gitignore.

    line 46
  5. Very specific:

    Only add rules for things the global rules don't already cover.

    line 49
  6. Distinctive:

    Ask the user if they want a PRD template created.

    line 52
  7. Very specific:

    If .claude/agents/ or .claude/commands/ exist, list what's in them and leave them in place.

    line 60
  8. Distinctive:

    Create duplicate skills or duplicate rules

    line 80

“Common” is measured: kept by at least 6 in 10 of the 42 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Initialize Project Configuration

Set up this project's .claude/ directory with standard configuration, framework-specific rules, and optional PRD scaffolding.

1. Check Current State

ls -la .claude/ 2>/dev/null || echo "No .claude directory found"
ls package.json composer.json requirements.txt pyproject.toml Cargo.toml 2>/dev/null || echo "No package manifest found"

2. Create Directory Structure

mkdir -p .claude/skills .claude/rules

3. Detect Stack and Install Framework Pack

Check which stack this project uses and copy the matching framework pack from ~/.claude/skills/init-project/packs/ into .claude/rules/.

Detection logic:

  • package.json with next dependency → Next.js → copy packs/nextjs.md to .claude/rules/nextjs.md
  • composer.json or wp-content/ exists → WordPress → copy packs/wordpress.md to .claude/rules/wordpress.md
  • requirements.txt or pyproject.toml exists → Python → copy packs/python.md to .claude/rules/python.md
  • None detected → ask the user which stack, or skip framework pack
# Example for Next.js detection:
if [ -f package.json ] && grep -q '"next"' package.json 2>/dev/null; then
  cp ~/.claude/skills/init-project/packs/nextjs.md .claude/rules/nextjs.md
  echo "Installed Next.js framework pack"
fi

Only install ONE framework pack per project.

4. Create Project CLAUDE.md

Create .claude/CLAUDE.md from the template in ~/.claude/rules/documentation-protocol.md § "Project CLAUDE.md template": a thin reference layer holding only this project's deltas (paths, context, stack, overrides, pointers to deeper docs).

5. Add to .gitignore

Ensure .claude/settings.local.json is in .gitignore.

6. Project-Level Rules

Only add rules for things the global rules don't already cover. List ~/.claude/rules/ to see the current set.

7. Offer PRD Scaffolding

Ask the user if they want a PRD template created. If yes:

mkdir -p docs/strategy
cp ~/.claude/skills/product-strategist/prd-template.md docs/strategy/prd.md
echo "Created docs/strategy/prd.md — fill in project-specific details"

8. Check Existing Config

If .claude/agents/ or .claude/commands/ exist, list what's in them and leave them in place. Project subagents and commands are current Claude Code features, and removing either is a deletion the user confirms first.

9. Verify

echo "=== Project Config ==="
cat .claude/CLAUDE.md
echo ""
echo "=== Project Rules ==="
ls .claude/rules/ 2>/dev/null || echo "(using globals only)"
echo ""
echo "=== Global Config ==="
echo "Rules:"
ls ~/.claude/rules/
echo "Skills:"
ls ~/.claude/skills/

Do NOT

  • Copy global rules into the project (they apply automatically)
  • Copy global skills into the project (they're available everywhere)
  • Create duplicate skills or duplicate rules
  • Install multiple framework packs (one per project)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.