appkit
AGENTS.md4 starsChanged 5 months agoMITView on GitHub
Stacks: Python 3.14 · Reflex.dev (UI) · FastAPI · SQLAlchemy 2.0 · Alembic · Pydantic · FastMCP · LangChain Prefer local changes over cross-module refactors. Prefer official docs; widen via web search for cross-version issues. Task Runner: task (via Taskfile.dist.yml), not make. Full rules in writing-python-code skill. Key: Full rules in reflex-state-and-architecture skill. Appkit-specific:
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository28 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- appkit-commonsSkill
- boostSkill
- code-cleanupSkill
- commit-msgSkill
- create-readmeSkill
- docker-multi-stageSkill
- frontend-designSkill
- github-actions-cicdSkill
- python-clean-codeSkill
- python-codingSkill
- reflex-docsSkill
- reflex-state-and-architectureSkill
- reflex-testing-stateSkill
- releaseSkill
- runic-migrateSkill
- runic-ogmSkill
- terraform-azure-verified-modulesSkill
- terraform-refactor-moduleSkill
- terraform-run-acceptance-testsSkill
- terraform-search-importSkill
- terraform-stacksSkill
- terraform-style-guideSkill
- terraform-testSkill
- appkit-commonsSkill
- appkit-mantine-referenceSkill
- appkit-userSkill
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 8 are distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Think → Memory → Tools → Code → Memory: Use code-reasoning; search Memory and claude-context first.
- Distinctive: line 11
Minimal diff: Add tests before code. Keep simple.
- Distinctive: line 12
Consistency > cleverness: Follow SOPs and stack idioms.
- Very specific: line 15
No extensive docs/summaries/comments unless requested.
- Distinctive: line 57
Prefer official docs; widen via web search for cross-version issues.
- Distinctive: line 74
Read first failing assertion.
- Distinctive: line 76
Add/adjust unit tests to codify expected behavior.
- Very specific: line 81
No
print: Use logging module. - Distinctive: line 111
No f-strings in logger calls.
- Very specific: line 134
Never redeclare inherited props — MantineComponentBase → MantineLayoutComponentBase → MantineInputComponentBase provide ~40 common props.
- Very specific: line 141
No credentials in code/history.
- Distinctive: line 145
Update vulnerable deps; document CVE-driven updates in commits & Memory.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.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
AppKit — Reflex-Mantine Component Library
Stacks: Python 3.14 · Reflex.dev (UI) · FastAPI · SQLAlchemy 2.0 · Alembic · Pydantic · FastMCP · LangChain
1) Golden Rules
- Think → Memory → Tools → Code → Memory. Use code-reasoning; search Memory and claude-context first; minimal diff; write learnings back.
- Tests are truth. Failures → fix code first. Change tests only if clearly wrong spec.
- Minimal diff. Add tests before code. Keep simple.
- Consistency > cleverness. Follow SOPs and stack idioms.
- Memory multiplies. Persist decisions, patterns, error signatures, proven fixes.
- Files ≤ 1000 lines. Exceed → refactor (see §5).
- No extensive docs/summaries/comments unless requested.
- No
--autogeneratefor Alembic migrations; write manually. - No
catto create files; use tools. - Log default:
logger.debug. Important events:logger.info. Issues only:logger.warning/error. Noprint.
Prefer local changes over cross-module refactors.
2) Task Bootstrap Pattern
<!-- plan:start
goal: <one line clear goal>
constraints:
- Python 3.14; Reflex UI; FastAPI; SQLAlchemy 2.0; Alembic; Pydantic; appkit_mantine;
- logging: no f-strings in logger calls
- files ≤ 1000 lines; apply design patterns where appropriate
- minimal diff; add/adjust tests first
definition_of_done:
- tests pass; coverage ≥ 80% (non-Reflex classes & Reflex states); lint/type checks clean; memory updated
steps:
1) Search Memory for "<keywords>"
2) Draft/adjust failing test to capture expected behavior
3) Implement minimal code change
4) Run task test; iterate until green
5) Update Memory: decisions, patterns, error→fix
plan:end -->3) Tooling Decision Matrix
| Situation | Primary | Secondary | Store to Memory |
| API/pattern uncertainty | Context7 | — | Canonical snippet + link; edge cases |
| Ecosystem bug/issue | DuckDuckGo | Context7 | Minimal repro; versions; workaround |
| Repeated test failure | Memory (search) | Context7 | Error signature → fix; root cause |
| New feature scaffold | Context7 | — | How‑to snippet; checklist |
| House style/tooling | This file | Context7 | Checklist results |
Prefer official docs; widen via web search for cross-version issues.
4) SOP — Development Workflow
Task Runner: task (via Taskfile.dist.yml), not make.
Prepare
- Memory first — search prior solutions.
- Reasoning plan — Task Bootstrap Pattern.
task sync(uv, Python 3.13).task test— snapshot current failures.
Triage Failures
- Read first failing assertion; map to spec.
- Tests match spec → fix code. Diverge → document; adjust spec/tests (after approval).
- Add/adjust unit tests to codify expected behavior.
Implement (Minimal Diff)
- Tests-first for new behavior. Approved stacks only. Apply design patterns (see §5).
- No
print. Useloggingmodule. No f-strings in logger calls:
import logging log = logging.getLogger(__name__) log.info("Loaded items: %d", count) # ✅ # log.info(f"Loaded items: {count}") # ❌
Quality Gates
task lint,task format.task test— coverage ≥ 80% non-Reflex classes & Reflex states.
Commit & PR
- Conventional Commits (
feat:,fix:,refactor:…). - PR: description,
Closes #123, UI screenshots, migration rationale.
Learn → write to Memory
5) Python Code & Testing
Full rules in writing-python-code skill. Key:
- Python 3.14; uv; line length 88.
- No f-strings in logger calls.
- Files ≤ 1000 lines.
- Coverage ≥ 80% non-Reflex classes & State classes.
- Type annotations on all functions/methods.
6) Reflex Best Practices
Full rules in reflex-state-and-architecture skill. Appkit-specific:
- Substates & Mixins: State vars on main class; methods split by concern in mixins.
- Background Task Chaining: Yield class method ref:
yield MyState.background_task. - rx.cond operators:
&and|, notand/or. - DB Access: No
rx.session()in background/callbacks/utils. Useappkit_commons.database.session_manager.get_session_manager().session().
7) appkit_mantine Components
Full API in appkit-mantine-reference skill. Rules:
import appkit_mantine as mn— Mantine 9.5.2.- Never redeclare inherited props —
MantineComponentBase→MantineLayoutComponentBase→MantineInputComponentBaseprovide ~40 common props. MantineProviderauto-injected at priority 44 — no manual wrap.
8) Security & Config
- No credentials in code/history;
.envlocal, Key Vault prod. - Non-secret YAML; env
__override pattern. - Parameterized logs; no sensitive values.
SecretStr→.get_secret_value().- Update vulnerable deps; document CVE-driven updates in commits & Memory.
9) Search SOPs
- Context7 first for framework truths; cite in Memory.
- DuckDuckGo for cross-version issues; prefer official docs.
- Store only final answer: minimal snippet + rationale + version pins + link.
10) Pre‑PR Checklist
- Tests added/updated; all green
- Coverage ≥ 80% non-Reflex classes & Reflex states
task format && task lintpass- No file > 1000 lines
- Design patterns applied
- Migrations reviewed & documented
- Memory updated (decisions, patterns, error→fix)
- PR description complete; links/screenshots added
11) Skills
| Skill | Purpose |
writing-python-code | Python 3.14 style, logging, type annotations, design patterns, testing |
reflex-state-and-architecture | State design, event handlers, background tasks, form validation, page factory, service registry, repo pattern, DB models, architecture |
appkit-mantine-reference | Full API for appkit_mantine components — inputs, layout, overlays, charts, data display, navigation |
testing-reflex-state | Pytest unit tests for Reflex State — event handlers, computed vars, substates |
multi-stage-dockerfile | Optimized multi-stage Dockerfiles, layer caching, security, healthchecks |
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.

