Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/parzival1l/altru/coregit clone --depth 1 https://github.com/parzival1l/AltruWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00779 | $0.00779 |
| Opus 5 | $0.00390 | $0.00390 |
| Sonnet 5 | $0.00156 | $0.00156 |
| Haiku 4.5 | $0.00078 | $0.00078 |
Grade A, and why
core scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Altru — Core Rules
Stack Conventions
Align all implementation with docs/architecture.md. Update that file as the stack is decided.
- Frontend: TBD — update
docs/architecture.mdwhen confirmed. - Backend: TBD — update
docs/architecture.mdwhen confirmed. - Infra: TBD — update
docs/architecture.mdwhen confirmed.
Architecture Update Rule (non-negotiable)
Whenever any service, data flow, API contract, or component changes:
- Update
docs/architecture.mdbefore or in the same commit as the code change. - If
docs/architecture.mdand the implementation disagree, the code is wrong — fix one or the other; never leave them out of sync. - If you are adding a new service, changing an API shape, or altering auth/data flows, update the Mermaid diagram in
docs/architecture.md.
Test-Driven Development (Mandatory for New Features)
Non-negotiable: Do not merge or ship new feature behaviour without Red → Green → Refactor TDD.
Cycle
- Red — Write a failing automated test that defines the required behaviour. Run it and confirm it fails.
- Green — Write the minimum code that makes the test pass. No extras.
- Refactor — Improve structure and remove duplication. All tests must stay green.
Defaults by Layer
- Backend: Use the project's test runner (e.g.
pytestfor Python,jest/vitestfor Node). Mock external services. Tests live inbackend/tests/. - Frontend: Use
Vitest+@testing-library/react(or the framework equivalent) for component behaviour. Tests co-located or infrontend/src/__tests__/.
Exceptions (must be noted inline)
- Pure documentation,
README,.gitignore, trivial config with no new testable behaviour may skip tests. Note the exception. - Do not skip tests for: API handlers, meaningful business logic, auth flows, or non-trivial UI logic.
Feature Tracking
- Update feature-process.md only when a feature's phase status changes meaningfully (shipped, blocked, new phase added).
- Keep it short. Use docs/ACTIVITY.md for session-level detail.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 88 lines · 779 tokens per session scan A 874dd3b90fda
core is a cursor rule published in the GitHub repository parzival1l/Altru (2 stars, last pushed 4mo ago), licensed MIT. It adds 779 tokens to every session, about $0.0039 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other cursor rules, from other repositories
unit-tests-tdd
TDD required for behavior changes; ≥80% package coverage on touched packages; unit-test conventions.
elite-developer
Principal Full-Stack Engineer for surgical implementation, strict TDD, complex debugging, and UI construction. Enforces the Agentic Company pipeline and high-rigor engineering standards. This agent contains the full knowledge of TDD, Systematic Debugging, Build Error Resolution, and Refactoring.
mcpnuke-tests
Test conventions for mcpnuke — enforces TDD workflow.
test_first_workflow
Enforce test-first or test-alongside development. Load when implementing new features, APIs, or UI components.
android_unit_testing_bdd
Unit testing best practices with BDD style.
03-testing
Testing requirements — test-before-commit policy, coverage expectations, and test quality standards.