|
1 | 1 | # Agent Instructions |
2 | 2 |
|
3 | | -遵循奥卡姆剃刀和第一性原理,不写兜底代码,检查代码是否有过时/死代码。 |
| 3 | +不写兜底代码。检查过时/死代码。遵循奥卡姆剃刀。 |
4 | 4 |
|
5 | | -This project is a local-first finance backend for external AI agents. Keep the core boring and deterministic. |
| 5 | +## Agent skills |
6 | 6 |
|
7 | | -## Project Rules |
| 7 | +### Issue tracker |
8 | 8 |
|
9 | | -- Do not embed AI chat, model providers, conversation memory, hosted billing, telemetry, or required web-server behavior in the core. |
10 | | -- Keep provider-specific behavior behind provider adapters. |
11 | | -- Keep JSON contracts stable and tested before expanding command scope. |
12 | | -- Do not silently fall back to old config paths, old provider names, or donor project behavior. |
13 | | -- Do not commit `donors/`; it is local reference material only. |
14 | | -- Prefer small deep modules with simple interfaces over many pass-through wrappers. |
| 9 | +GitHub Issues. See `docs/agents/issue-tracker.md`. |
15 | 10 |
|
16 | | -## Donor Policy |
| 11 | +### Triage labels |
17 | 12 |
|
18 | | -Use donor repositories for reference: |
| 13 | +needs-triage, needs-info, ready-for-agent, ready-for-human, wontfix. See `docs/agents/triage-labels.md`. |
19 | 14 |
|
20 | | -- `donors/monarchmoney-cli`: CLI contract and safety design. |
21 | | -- `donors/ray-finance`: provider sync and local data lessons. |
22 | | -- `donors/actual`: local-first budgeting and automation lessons. |
23 | | -- `donors/maybe`: finance product/domain modeling. |
| 15 | +### Domain docs |
24 | 16 |
|
25 | | -Copying code from donors requires checking license compatibility first. Maybe is AGPL, so do not copy code from it unless the project intentionally adopts a compatible license. |
| 17 | +`CONTEXT.md` + `docs/adr/` at repo root. See `docs/agents/domain.md`. |
26 | 18 |
|
27 | | -## Command Contract Discipline |
| 19 | +### Donor policy |
28 | 20 |
|
29 | | -When changing CLI commands, flags, JSON output structure, or command behavior, update: |
| 21 | +See `.claude/skills/donor-policy.md` (load when touching `donors/`). |
30 | 22 |
|
31 | | -- Command help. |
32 | | -- `docs/PRD.md` if product requirements change. |
33 | | -- `docs/ARCHITECTURE.md` if module boundaries change. |
34 | | -- Contract tests once the command is stable. |
| 23 | +### Command contract |
| 24 | + |
| 25 | +See `.claude/skills/command-contract.md` (load when changing CLI commands or JSON output). |
0 commit comments