Files
structured-website-builder-…/AGENTS.md
T
2026-07-25 13:12:23 -06:00

72 lines
3.0 KiB
Markdown

# Agent Instructions
## Purpose And Read Order
This repository is a reusable static website builder with content, Hugo,
Python, repository-local skills, semantic artifacts, discovery generation, and
an optional contact API. Read, in order:
1. `README.md`
2. `AUTHOR.md`
3. `repository-variables.json`
4. `repository.json`
5. `PUBLICATION_WORKFLOW.md`
6. `skills.md`
7. The relevant skill, script, content, or Hugo file
## Source Of Truth And Pipeline
- `content/` is the authoritative Markdown source.
- `hugo-html-builder/content/` is a derived Hugo content mirror.
- `hugo-html-builder/public/` and root `public/` are generated outputs and are
excluded from source control.
- `content-index.json` catalogs repository source documents.
- Generated `public/ai-index.json`, semantic chunks, QA data, and discovery
files are publication artifacts with separate purposes.
- Follow the order documented in `README.md` and the applicable skill before
running a mutating pipeline stage.
## Modification Rules
- Preserve unrelated worktree changes. Reinspect Git status before editing.
- Do not rewrite or relocate established skills, scripts, content, layouts, or
publication documentation merely to match a generic template.
- Keep `README.md`, `skills.md`, `repository.json`, and relevant skill files
synchronized when pipeline entrypoints change.
- Keep `content-index.json` synchronized when authoritative source documents
are added, moved, or retired.
- Keep repository identity aligned across `repository-variables.json`,
`AUTHOR.md`, `repository.json`, `CITATION.cff`, and `LICENSE`.
- Record completed versioned changes in `CHANGELOG.md`.
- Treat `UPDATES.md` as proposed work, not authorization.
## Human Approval Requirements
- Obtain approval before publishing generated output, deploying services,
changing domains or canonical URLs, modifying remote/hosting settings,
changing licenses, rotating credentials, or making substantive public
content changes.
- Do not run scripts that overwrite Hugo or public output when the task is
inspection, metadata maintenance, or repository-structure work.
## Security And Privacy
- Follow `PUBLICATION_WORKFLOW.md`, `SECURITY.md`, and `sanitization-map.md`.
- Never commit `.env`, credentials, SMTP passwords, CAPTCHA secrets, tokens,
private infrastructure identifiers, raw subscriber data, logs, or exports.
- `.env.example` must contain placeholders only.
- Preserve the sanitized public/private boundary.
## Validation
1. Parse machine-readable files and validate declared paths.
2. Run repository tests and Python syntax checks.
3. Run the profile audit and `git diff --check`.
4. Run `scripts/leak_scan.ps1` or an equivalent targeted credential scan for
public-release work.
5. When the publishing pipeline changes, validate source/Hugo synchronization,
Hugo rendering, semantic artifacts, discovery files, and the final output in
the order documented by the applicable skills.
6. Record unavailable tools or skipped mutating stages rather than simulating
success.