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
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- nx-plugin-for-awsSkill
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
- Distinctive: line 5
Read the following before making changes:
- Distinctive: line 24
Run tests and update snapshots:
- Very specific: line 32
Always use npx -y (not bare npx) to avoid the "Ok to proceed?" prompt hanging in non-interactive environments.
- Distinctive: line 36
Keep comments succinct and always describe the current state — never include historical context or changelog-style notes.
- Distinctive: line 38
Use the existing codebase to inform code style, testing style, etc.
- Distinctive: line 42
Before raising a PR, validate changed generators in an example workspace using locally compiled versions:
- Distinctive: line 46
Create a fresh workspace, then invoke the relevant changed generators with the locally compiled versions.
- Distinctive: line 48
If the change warrants it, deploy to AWS, test there, then tear down all provisioned resources.
- Distinctive: line 52
Always ensure the build passes before raising a PR.
- Distinctive: line 53
Update snapshots if there are failures due to snapshot changes.
- Distinctive: line 54
Use conventional commits, referencing the generator you are working on, eg "feat(ts#project): my commit message".
- Distinctive: line 56
After pushing to a PR, monitor the checks and iterate on any failures until all are green.
≈ “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.
Files
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 iBuild:
pnpm nx run-many --target build --allRun tests and update snapshots:
pnpm nx run @aws/nx-plugin:test -uTips
- Always use
npx -y(not barenpx) 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
devtarget. - 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
depstype 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.
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
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.

