agentleFS
AWSKnown publisherawslabs/nx-plugin-for-aws/CLAUDE.md

nx-plugin-for-aws

CLAUDE.md150 starsChanged 10 months agoApache-2.0View on GitHub

Read the following before making changes: Install dependencies: Run tests and update snapshots: Before raising a PR, validate changed generators in an example workspace using locally compiled versions:

  • Installs packages

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the following before making changes:

    line 5
  2. Distinctive:

    Run tests and update snapshots:

    line 24
  3. Very specific:

    Always use npx -y (not bare npx) to avoid the "Ok to proceed?" prompt hanging in non-interactive environments.

    line 32
  4. Distinctive:

    Keep comments succinct and always describe the current state — never include historical context or changelog-style notes.

    line 36
  5. Distinctive:

    Use the existing codebase to inform code style, testing style, etc.

    line 38
  6. Distinctive:

    Before raising a PR, validate changed generators in an example workspace using locally compiled versions:

    line 42
  7. Distinctive:

    Create a fresh workspace, then invoke the relevant changed generators with the locally compiled versions.

    line 46
  8. Distinctive:

    If the change warrants it, deploy to AWS, test there, then tear down all provisioned resources.

    line 48
  9. Distinctive:

    Always ensure the build passes before raising a PR.

    line 52
  10. Distinctive:

    Update snapshots if there are failures due to snapshot changes.

    line 53
  11. Distinctive:

    Use conventional commits, referencing the generator you are working on, eg "feat(ts#project): my commit message".

    line 54
  12. Distinctive:

    After pushing to a PR, monitor the checks and iterate on any failures until all are green.

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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

Instructions for Claude

Required Reading

Read the following before making changes:

  • CONTRIBUTING.md — the authoritative guide for generator idempotency, testing expectations, writing documentation, and the PR process.
  • Contributing a Generator tutorial — how to build a generator end to end, including working backwards from a real project to inform the generator changes.

Commands

Install dependencies:

pnpm i

Build:

pnpm nx run-many --target build --all

Run tests and update snapshots:

pnpm nx run @aws/nx-plugin:test -u

Tips

  • Always use npx -y (not bare npx) to avoid the "Ok to proceed?" prompt hanging in non-interactive environments.

Code Style

  • Keep comments succinct and always describe the current state — never include historical context or changelog-style notes.
  • Comments in generated/template files should be minimal.
  • Use the existing codebase to inform code style, testing style, etc.

Testing Changes End-to-End

Before raising a PR, validate changed generators in an example workspace using locally compiled versions:

  • Consult the Nx Plugin for AWS MCP server (create-workspace-command, list-generators, generator-guide, general-guidance) as the baseline for creating workspaces and running generators. Expect deviations driven by the local changes under test.
  • Make the locally compiled packages available to the workspace — either publish them to a local Verdaccio registry, or use pnpm link.
  • Create a fresh workspace, then invoke the relevant changed generators with the locally compiled versions.
  • Confirm everything builds and runs locally, including the dev target.
  • If the change warrants it, deploy to AWS, test there, then tear down all provisioned resources.

Best Practices

  • Always ensure the build passes before raising a PR.
  • Update snapshots if there are failures due to snapshot changes.
  • Use conventional commits, referencing the generator you are working on, eg "feat(ts#project): my commit message". Use the deps type for bumping dependency versions vended to users — see Commit Messages for the type-to-release-bump mapping.
  • Raise PRs following the PR template.
  • After pushing to a PR, monitor the checks and iterate on any failures until all are green.

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.