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
A newer version of the Streamlit SDK is available: 1.67.0
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 toCLAUDE.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>.pyrule, helper naming, what we do NOT do (nosrc/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 touchingmain.ymland 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 observeddevbranch that is NOT the production branch despite being the repo default.docs/guides/review-workflow.mdβ reviewer subagent contract,.decode-reviewer-cleanmarker 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 applieddecode-ai-standardsref 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 viacore.hooksPathbyscripts/setup.sh.
Reading order for a fresh agent
If you have time for only one pass, read in this order:
CLAUDE.md(base rules, reviewer procedure, hard rules 1β5)docs/guides/ai-enablement-limits.md(what you cannot do and why)docs/guides/protected-boundary-policy.md(the deploy story)docs/architecture/repository-erd.md(what the code is)docs/runbooks/local-setup.md(only if you intend to run it locally)
If you have time for two passes, also read:
docs/guides/review-workflow.mddocs/policies/naming-conventions.mddocs/policies/root-artifact-policy.md
The rest is referential β pull in on demand, not preemptively.