packmind
CLAUDE.md317 starsChanged 2 months agoApache-2.0View on GitHub
This is an Nx monorepo containing applications and reusable packages. Local development uses Docker Compose to run all services (API, frontend, Redis, PostgreSQL). Docker Compose automatically provisions PostgreSQL and Redis - no manual setup required. The following commands apply for both NX apps and packages (use ./node_modules/.bin/nx show projects to list actual apps and packages.) - Test a project: ./node_modules/.bin/nx test <project-name> - Lint a project: ./node_modules/.bin/nx lint <project-name> - Build a project: ./node_modules/.bin/nx build <project-name> - Test affected projects:…
In this repository92 other files it gives its agents.
- AGENTS.mdAGENTS.md
- apps/AGENTS.mdAGENTS.md
- packages/AGENTS.mdAGENTS.md
- apps/CLAUDE.mdCLAUDE.md
- packages/CLAUDE.mdCLAUDE.md
- .cursor/rules/packmind/standard-backend-tests-redaction.mdcCursor rule
- .cursor/rules/packmind/standard-changelog.mdcCursor rule
- .cursor/rules/packmind/standard-code-comments.mdcCursor rule
- .cursor/rules/packmind/standard-compliance-logging-personal-information.mdcCursor rule
- .cursor/rules/packmind/standard-typescript-good-practices.mdcCursor rule
- agent-skill-frontmatter-auditSkill
- amplitude-listener-events-adoptionSkill
- cli-e2e-test-authoringSkill
- datadog-analysisSkill
- doc-auditSkill
- feature-specSkill
- feature-sprintSkill
- packmind-onboardSkill
- packmind-update-playbookSkill
- playbook-cli-auditSkill
- product-mapSkill
- qa-reviewSkill
- release-proprietarySkill
- upgrade-runtime-stackSkill
- working-with-playground-appSkill
- working-with-pm-design-kitSkill
- agentic-design-sessionSkill
- agentic-doc-ingestSkill
- agentic-feature-framingSkill
- agentic-orchestratorSkill
- agent-skill-frontmatter-auditSkill
- amplitude-listener-events-adoptionSkill
- cli-e2e-test-authoringSkill
- create-run-e2e-testsSkill
- creating-end-user-documentation-for-packmindSkill
- datadog-analysisSkill
- doc-auditSkill
- feature-flags-auditSkill
- feature-flags-authoringSkill
- feature-specSkill
- feature-sprintSkill
- how-to-write-typeorm-migrations-in-packmindSkill
- improve-claude-mdSkill
- packmind-onboardSkill
- packmind-update-playbookSkill
- playbook-cli-auditSkill
- product-mapSkill
- qa-reviewSkill
- release-proprietarySkill
- upgrade-runtime-stackSkill
- working-with-playground-appSkill
- working-with-pm-design-kitSkill
- agent-skill-frontmatter-auditSkill
- amplitude-listener-events-adoptionSkill
- cli-e2e-test-authoringSkill
- creating-end-user-documentation-for-packmindSkill
- datadog-analysisSkill
- doc-auditSkill
- feature-flags-auditSkill
- feature-flags-authoringSkill
- The first 60 shown.
The file
We split this CLAUDE.md into the rules it gives an agent
9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Test a project: ./node_modules/.bin/nx test <project-name>
- Very specific: line 31
Test affected projects: pnpm run test:staged
- Distinctive: line 41
When running commands, ensure you use the correct Node version (see .nvmrc at the project's root level)
- Very specific: line 42
When renaming or moving a file that is commited to git, use git mv instead of mv
- Very specific: line 43
ensure the env variable PACKMIND_EDITION is properly set to oss
- Very specific: line 44
when asked to execute packmind-cli, use node ./dist/apps/cli/main.cjs
- Distinctive: line 50
Do NOT create branches yourself - let developers decide on branching strategy
- Very specific: line 56
Secrets Retrieval: Always use Configuration.getConfig() from @packmind/node-utils to access secrets in code
- Very specific: line 63
Use the ./node_modules/.bin/nx lint and ./node_modules/.bin/nx test commands on the apps and packages you've edited
≈ “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
Nx Monorepo Structure
This is an Nx monorepo containing applications and reusable packages.
Core Technologies
- Runtime: Node.js (version specified in
.nvmrc) - Language: TypeScript
- Database: PostgreSQL with TypeORM for entity persistence
- Cache: Redis for caching
- Background Jobs: BullMQ for job queue management
- Testing: Jest with @swc/jest as test runner
Directory Structure
apps/- Deployable applications (API, frontend, CLI, e2e tests, docs)packages/- Reusable domain and infrastructure packages shared across apps.github/workflows/- CI/CD pipelines for build, test, quality checks, and deployment
Local Development Environment
Local development uses Docker Compose to run all services (API, frontend, Redis, PostgreSQL). Docker Compose automatically provisions PostgreSQL and Redis - no manual setup required.
Working with Nx
The following commands apply for both NX apps and packages (use ./node_modules/.bin/nx show projects to list actual apps and packages.)
- Test a project:
./node_modules/.bin/nx test <project-name> - Lint a project:
./node_modules/.bin/nx lint <project-name> - Build a project:
./node_modules/.bin/nx build <project-name> - Test affected projects:
pnpm run test:staged - Lint affected projects:
pnpm run lint:staged
Code Quality
- Linting:
./node_modules/.bin/nx lint <project-name>runs ESLint, using the config fileeslint.config.mjs. - Formatting: Prettier is used for code formatting. You don't have to run it, it's set as a pre-commit hook.
Commands
- When running commands, ensure you use the correct Node version (see .nvmrc at the project's root level)
- When renaming or moving a file that is commited to git, use
git mvinstead ofmv - ensure the env variable
PACKMIND_EDITIONis properly set tooss - when asked to execute
packmind-cli, usenode ./dist/apps/cli/main.cjs - Some default skills use version-routed directories (
packmind-versions/<version>/) and ask you to runpackmind --versionto pick the right one. Since you already run the local build withnode ./dist/apps/cli/main.cjs, you always have the latest — skip the--versioncheck and use the highest-numberedpackmind-versions/directory (currently0.35.0for bothpackmind-onboardandpackmind-update-playbook). There is nonext/directory.
Git Workflow
- The project uses trunk-based development (all work on
mainbranch) - Do NOT create branches yourself - let developers decide on branching strategy
- Each sub-task should have its own commit (as per Task splitting section)
Security
- Secrets Detection: GitGuardian runs in CI to detect leaked secrets
- Secrets Retrieval: Always use
Configuration.getConfig()from@packmind/node-utilsto access secrets in code - Secrets Storage: Infisical or environment variables are used for secrets management - never hardcode secrets
Task splitting
- For any task you perform, you MUST split it into multiple into sub-tasks which have a logical increment (eg: new endpoint, new component, new use case etc). When a task is done, run all the validation steps (lint, test, packmind etc) and ask me for validation of the work you did.
- Each sub task MUST have its own commit.
- Use the
./node_modules/.bin/nx lintand./node_modules/.bin/nx testcommands on the apps and packages you've edited
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.

