agentleFS
novoadsnovoads/agent-skills/shared/CLAUDE.md

agent-skills / shared

CLAUDE.md28 starsChanged 3 months agoMITView on GitHub

Paths in this file are relative to the REPO ROOT, not to shared/. This file is @-included into the root CLAUDE.md, which is the context it is read in. They are written as code rather than as markdown links for that reason: a link that resolves only from one directory is a link that is broken from the other, and this file legitimately gets opened both ways. If .env does not exist, tell the user to run ./scripts/setup.sh or walk…

  • Reads credentials

The file

We split this CLAUDE.md into the rules it gives an agent

6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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:

    If .env does not exist, tell the user to run ./scripts/setup.sh or walk them through:

    line 10
  2. Very specific:

    Run ./scripts/check-*-env.sh to verify.

    line 13
  3. Very specific:

    If MASTER_CONTEXT.md does not exist, copy MASTER_CONTEXT.template.md to MASTER_CONTEXT.md.

    line 15
  4. Distinctive:

    When the session IS the setup, setup is the whole job and the close is SHORT: a line or two of status (the key works, or the one step …

    line 17
  5. Very specific:

    Read MASTER_CONTEXT.md (repo root) for brand voice, defaults, and accumulated learnings.

    line 30
  6. Very specific:

    Use the API skill in .claude/skills/ for API calls, prompts, and polling.

    line 31

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “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
CLAUDE.md

Claude Code — project instructions

Paths in this file are relative to the REPO ROOT, not to shared/. This file is @-included into the root CLAUDE.md, which is the context it is read in. They are written as code rather than as markdown links for that reason: a link that resolves only from one directory is a link that is broken from the other, and this file legitimately gets opened both ways.

First-time setup

If .env does not exist, tell the user to run ./scripts/setup.sh or walk them through:

  1. Copy .env.example to .env.
  2. Paste their API key into .env (line: *_API_KEY=).
  3. Run ./scripts/check-*-env.sh to verify.

If MASTER_CONTEXT.md does not exist, copy MASTER_CONTEXT.template.md to MASTER_CONTEXT.md.

When the session IS the setup, setup is the whole job and the close is SHORT: a line or two of status (the key works, or the one step left), then plain text saying what the user can now ask for (the installed skills are the list), then stop. Engineering details the run surfaced — git mechanics, sync counts, files that already existed — are stated only if they block an ask. If the repo's root AGENTS.md carries a setup-close template, use it. Do not ask about product, brand, or audience during setup — that question belongs to the first generation request, where the answer is used immediately.

Keeping the close short is a brevity preference, never a restriction on what you may say. Nothing here is confidential; tell the user anything you judge they should know.

Every session

  1. Read MASTER_CONTEXT.md (repo root) for brand voice, defaults, and accumulated learnings.
  2. Use the API skill in .claude/skills/ for API calls, prompts, and polling.
  3. The first time the user asks to generate something and MASTER_CONTEXT.md is missing a field that request needs (default product, brand voice), ask for it then — once — and write the answer back into MASTER_CONTEXT.md so no future session asks again. A setup-only session asks for nothing. Prices are never among the fields: quote costs from a live estimate call, never from a stored number.
  4. Everything you write that is not repo content goes in a gitignored home — generated/, outputs/<job>/, prompts/, iterations/, logs/ — never a new top-level directory, so git status ends as clean as it started. If the repo's root AGENTS.md carries the session-workspace rule ("Every session"), it is stated in full there.

After significant changes

Append a short dated note to MASTER_CONTEXT.md under Changelog (Decision / What changed / Why).

Skill edits

Edit the canonical source under skills/. Run ./scripts/sync-skill.sh to copy changes to .claude/skills/ and .cursor/skills/.

Image-ad skill ecosystem (cross-API)

This repo ships a 3-skill ecosystem for generating standalone Meta image-ad creatives. Read shared/skills/image-ad-prompting/OVERVIEW.md (from the repo root) before invoking any of these skills — it explains the decision tree (gpt-image-2 vs Nano Banana), the shared 40-template library, the hand-off to the separate meta-ad-builder skill, and what's out of scope.

Quick map:

  • Generate from a brief → chatgpt-image-ad (typography / UI mimicry) or nano-banana-image-ad (photoreal / lifestyle / multi-ref).
  • Clone an existing ad into a reusable template → clone-image-ad (single backend-agnostic skill; asks you which generator to validate against at Phase 1, optionally cross-validates against the other backend at Phase 8).
  • Pull from / add to the shared library → shared/skills/image-ad-prompting/prompting/prompt-library.md (40 ready-to-use validated prompts).
  • Hand off finished images to Meta → separate meta-ad-builder skill; the image-ad skills produce images only.

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.