Spaces:
Sleeping
Sleeping
|
Download docs/reference/agent-guide.md from DecodeMarketing/decode_tools: direct link, hf CLI and curl.
- Browser
- Download file 3.7 kB
-
https://huggingface.co/spaces/DecodeMarketing/decode_tools/resolve/main/docs/reference/agent-guide.md
- Command line
-
hf download hf://spaces/DecodeMarketing/decode_tools/docs/reference/agent-guide.md
-
curl -L -o agent-guide.md https://huggingface.co/spaces/DecodeMarketing/decode_tools/resolve/main/docs/reference/agent-guide.md
3.7 kB
| # Agent guide | |
| What an AI agent contributing to `icat_app` needs to read first. | |
| This is the single starting page for an agent. Each section names the | |
| authoritative file; this guide does not duplicate content β it points. | |
| ## 1. Identity + base rules | |
| - `CLAUDE.md` β DECODE base rules (reviewer-required, verify-before-claim, | |
| patch-source-not-artifact, stage-files-explicitly, no-AI-attribution). | |
| - `AGENTS.md` β the thin entrypoint for any AI workflow (points back to | |
| `CLAUDE.md` + this file). | |
| ## 2. What this repo IS | |
| - `docs/architecture/repository-erd.md` β runtime topology (`app.py` β 8 | |
| tabs β `helper.py`), deploy pipe to Hugging Face Spaces. | |
| - `docs/architecture/active-surface.md` β which helpers each tab consumes. | |
| - `README.md` β public landing card (the HF Spaces frontmatter at the top | |
| is consumed by the Space; do not edit the keys). | |
| ## 3. Naming + structure rules | |
| - `docs/policies/naming-conventions.md` β `tab<N>.py` rule, helper naming, | |
| what we do NOT do (no `src/` layout, no per-tab subdirs). | |
| - `docs/policies/root-artifact-policy.md` β what is allowed at root, what | |
| is gitignored, what is tolerated locally. | |
| ## 4. Where to NOT go | |
| - `docs/guides/ai-enablement-limits.md` β destructive ops, secret writes, | |
| AI-attribution, the deploy-critical file list. | |
| - `docs/guides/protected-boundary-policy.md` β `main` = HF deploy on every | |
| push; rules around touching `main.yml` and the runtime files. | |
| ## 5. How to actually do work | |
| - `docs/runbooks/local-setup.md` β clone β install β run β verify. | |
| - `docs/guides/git-and-pr-rules.md` β branch model, default flow | |
| (`feature/<scope>` β PR β `main`), PR target, the observed `dev` branch | |
| that is NOT the production branch despite being the repo default. | |
| - `docs/guides/review-workflow.md` β reviewer subagent contract, | |
| `.decode-reviewer-clean` marker semantics, override syntax. | |
| - `.github/pull_request_template.md` β the deploy-boundary checklist that | |
| appears on every new PR. | |
| ## 6. When CI fails | |
| - `docs/guides/ci-failure-triage.md` β per-workflow failure modes and | |
| recovery steps. Read before re-running anything. | |
| ## 7. Verification | |
| - `scripts/repo_validate.py` β local pre-push proof. Same script also | |
| runs on every PR via `.github/workflows/repo_validate.yml`. | |
| ## 8. Audit + standards alignment | |
| - `.claude/manifests/standards-sync.yaml` β the applied | |
| `decode-ai-standards` ref and slice ledger. | |
| - `.claude/skills/check_decode_ai_standards_updates/SKILL.md` β the | |
| freshness-check skill that compares the manifest against upstream. | |
| - `docs/progress/slice-integration-overview.md` β slice timeline. | |
| ## 9. Hooks + skills surface | |
| - `.claude/settings.json` β allowed/blocked tool patterns, hook wiring. | |
| - `.claude/hooks/` β runtime block-*.sh scripts. | |
| - `.claude/skills/{deslop,tdd,check_decode_ai_standards_updates}/SKILL.md` | |
| β repo-local skills. | |
| - `.githooks/pre-commit`, `.githooks/commit-msg` β git-side enforcement. | |
| Wired via `core.hooksPath` by `scripts/setup.sh`. | |
| ## Reading order for a fresh agent | |
| If you have time for only one pass, read in this order: | |
| 1. `CLAUDE.md` (base rules, reviewer procedure, hard rules 1β5) | |
| 2. `docs/guides/ai-enablement-limits.md` (what you cannot do and why) | |
| 3. `docs/guides/protected-boundary-policy.md` (the deploy story) | |
| 4. `docs/architecture/repository-erd.md` (what the code is) | |
| 5. `docs/runbooks/local-setup.md` (only if you intend to run it locally) | |
| If you have time for two passes, also read: | |
| 6. `docs/guides/review-workflow.md` | |
| 7. `docs/policies/naming-conventions.md` | |
| 8. `docs/policies/root-artifact-policy.md` | |
| The rest is referential β pull in on demand, not preemptively. | |