3.0 KiB
3.0 KiB
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:
README.mdAUTHOR.mdrepository-variables.jsonrepository.jsonPUBLICATION_WORKFLOW.mdskills.md- 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 rootpublic/are generated outputs and are excluded from source control.content-index.jsoncatalogs 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.mdand 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.jsonsynchronized when authoritative source documents are added, moved, or retired. - Keep repository identity aligned across
repository-variables.json,AUTHOR.md,repository.json,CITATION.cff, andLICENSE. - Record completed versioned changes in
CHANGELOG.md. - Treat
UPDATES.mdas 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, andsanitization-map.md. - Never commit
.env, credentials, SMTP passwords, CAPTCHA secrets, tokens, private infrastructure identifiers, raw subscriber data, logs, or exports. .env.examplemust contain placeholders only.- Preserve the sanitized public/private boundary.
Validation
- Parse machine-readable files and validate declared paths.
- Run repository tests and Python syntax checks.
- Run the profile audit and
git diff --check. - Run
scripts/leak_scan.ps1or an equivalent targeted credential scan for public-release work. - 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.
- Record unavailable tools or skipped mutating stages rather than simulating success.