WAIaaS
CLAUDE.md29 starsChanged 10 months agoMITView on GitHub
- Commits and pushes
In this repository2 other files it gives its agents.
- site/llms.txtllms.txt
- agent-uatSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
13 rules. About 0 are common, 8 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
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
- Distinctive: line 5
All planning/design documents and issue reports are written in Korean.
- Distinctive: line 12
Only ask questions when choices are needed.
- Very specific: line 29
No nesting in config.toml (daemon).
- Very specific: line 35
Default-deny policy: deny when ALLOWED_TOKENS / CONTRACT_WHITELIST / APPROVED_SPENDERS are not configured.
- Distinctive: line 43
Create a new skill file when a new domain is added.
- Distinctive: line 49
If coverage drops due to new code, write tests for the new code paths.
- Distinctive: line 50
If coverage drops due to refactoring, update or add tests to cover the refactored logic.
- Very specific: line 55
Create a milestone branch before any work: When starting a new milestone, create milestone/v{X.Y} branch from dev before making any commits …
- Distinctive: line 56
All milestone work (planning, implementation, tests) happens on the milestone branch.
- Very specific: line 58
Release flow: When ready to release, create a dev → main PR manually.
- Very specific: line 63
Update objective status on milestone completion: When a milestone is shipped, update the corresponding …
- Distinctive: line 77
Milestone objective status header: Every milestone objective file includes a status block after the title:
- Distinctive: line 87
Include test items in issues: When registering an issue, add a "테스트 항목" section listing unit/integration tests needed to verify the fix and …
≈ “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
WAIaaS Project Rules
Language
- All planning/design documents and issue reports are written in Korean.
- ⚠️ CRITICAL: Commit messages, PR titles/bodies, Git tag messages, and GitHub Release titles/bodies MUST be written in English. NO EXCEPTIONS. Do not use Korean in any git-facing or GitHub-facing output. This applies to
git commit -m,gh pr create --title/--body,git tag -m, andgh release create --title/--notes. - Code comments, variable names, and API responses use English.
Communication
- Minimize questions; make your best judgment and propose the optimal approach.
- Only ask questions when choices are needed.
Schema & Type System
- Zod SSoT: Zod schemas are the single source of truth. Derivation order: Zod → TypeScript types → OpenAPI → Drizzle schema → DB CHECK constraints.
- discriminatedUnion 9-type: Discriminate on the
typefield: TRANSFER / TOKEN_TRANSFER / CONTRACT_CALL / APPROVE / BATCH / SIGN / X402_PAYMENT / NFT_TRANSFER / CONTRACT_DEPLOY. - ChainError extends Error (not WAIaaSError). Convert to WAIaaSError in Stage 5.
- Gas safety margin:
(estimatedGas * 120n) / 100nbigint arithmetic.
Database
- DB migrations required since v1.4: Provide incremental ALTER TABLE migrations for schema changes. Never drop and recreate the DB. Version management via the
schema_versiontable. Strategy defined in design doc 65 (MIG-01~06). - Tests required for new migrations: (1) Update schema snapshot fixtures (2) Write data transformation tests. Chain tests automatically verify the full path from past versions to the latest.
- SQLite timestamps are in seconds; UUID v7 uses ms for ordering.
Configuration
- No nesting in config.toml (daemon). Push Relay (
packages/push-relay) config.toml allows nesting. Environment variables follow theWAIAAS_{SECTION}_{KEY}pattern. - Expose runtime-adjustable settings in Admin Settings. config.toml provides initial defaults; Admin Settings provides runtime overrides (hot-reload). Settings that should be changeable without daemon restart are made adjustable via SettingsService in the Admin UI. Security credentials (master_password_hash) and infrastructure settings (port, host, rpc_url) that require restart remain config.toml-only.
- Prefer Admin Settings over config.toml. For runtime configuration, use Admin UI, CLI commands (
waiaas notification setup, etc.), or the Admin Settings API (PUT /v1/admin/settings). Direct config.toml editing should only be used for initial bootstrap and infrastructure settings (port, hostname, database path). When writing documentation and guides, present Admin Settings methods first.
Policy
- Default-deny policy: deny when ALLOWED_TOKENS / CONTRACT_WHITELIST / APPROVED_SPENDERS are not configured.
- Contracts default-deny (CONTRACT_WHITELIST opt-in).
Interface Sync
- When REST API, SDK, or MCP interfaces change,
skills/files must be updated accordingly.- Targets: quickstart.skill.md, wallet.skill.md, transactions.skill.md, policies.skill.md, admin.skill.md
- Sync the corresponding skill files when endpoints are added/removed/changed, request/response schemas change, auth methods change, or error codes are added.
- Create a new skill file when a new domain is added.
- All skill files must include the security notice:
> AI agents must NEVER request the master password. Use only your session token.
Test Coverage
- ⚠️ ABSOLUTE RULE: NEVER lower test coverage thresholds. When CI/CD fails due to insufficient test coverage, the ONLY acceptable response is to add tests until the coverage threshold is met. Lowering coverage thresholds in vitest.config.ts, CI workflows, or any other configuration is strictly prohibited — no exceptions, no temporary workarounds.
- If coverage drops due to new code, write tests for the new code paths.
- If coverage drops due to refactoring, update or add tests to cover the refactored logic.
Git Branching
- Two main branches:
main(RC/stable releases only) anddev(development + verification). - Create a milestone branch before any work. When starting a new milestone, create
milestone/v{X.Y}branch fromdevbefore making any commits (including planning docs). - All milestone work (planning, implementation, tests) happens on the milestone branch.
- Merge to
devvia PR when the milestone is complete. PR creation is manual — do not auto-create PRs on milestone completion. - Release flow: When ready to release, create a
dev→mainPR manually. release-please watchesmainand creates Release PRs from there. - Hotfix: For urgent fixes, create
hotfix/*branch frommainand PR directly tomain. After merge, syncmain→devto avoid divergence.
Milestone Completion
- Update objective status on milestone completion. When a milestone is shipped, update the corresponding
internal/objectives/m{seq}-{sub}-{slug}.mdstatus header:Status: PLANNED→SHIPPED, addCompleted: YYYY-MM-DD. Do this before creating the milestone PR. - Do not auto-create milestone PRs. PR creation (milestone →
dev,dev→main) is done manually by the user. - Run
pnpm turbo run lintandpnpm turbo run typecheckbefore creating the PR. Lint/type errors in merged code block release-please PRs. - release-please manages version bumps + tags + CHANGELOG automatically (2-gate model).
- Release flow: Merge
dev→mainPR (Conventional Commits) → release-please auto-creates Release PR → Merge Release PR (Gate 1: release decision) → release.yml quality gate → deploy job manual approval (Gate 2: deployment execution). - Commit conventions:
feat:(minor),fix:(patch),BREAKING CHANGE:(major).docs:,test:,chore:,ci:, etc. are excluded from CHANGELOG. - RC promotion and prerelease restore via GitHub Actions: Use the
Promote RC to Stableworkflow_dispatch to promote the latest RC to a stable release (auto-detects latest RC, or specify a version). After the stable release is published, run theRestore Prerelease Modeworkflow_dispatch. Both workflows can also be run locally vianode scripts/promote-release.js <rc-version>andnode scripts/promote-release.js --restore.
Milestone & Issue Naming
- Milestone objective files are placed in
internal/objectives/with the formatm{seq}-{sub}-{slug}.md.{seq}: two-digit sequence number (01-99){sub}: two-digit sub-sequence (00 for main, 01-99 for sub-milestones){slug}: kebab-case topic name
- Milestone objective status header. Every milestone objective file includes a status block after the title:
- **Status:** PLANNED / IN_PROGRESS / SHIPPED - **Milestone:** v{X.Y.Z} - **Package:** {semver} ← only when SHIPPED (npm release version) - **Completed:** YYYY-MM-DD ← only when SHIPPED - Issue files are placed in
internal/objectives/issues/with the format{NNN}-{slug}.md. - Register issues in
internal/objectives/issues/TRACKER.mdand update the status. - Types: BUG (defect) / ENHANCEMENT (improvement) / MISSING (missing feature).
- Include test items in issues. When registering an issue, add a "테스트 항목" section listing unit/integration tests needed to verify the fix and prevent regression. Skip only when the change is purely non-functional (docs, config, naming).
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.

