1.6 KiB
1.6 KiB
Agent Instructions
Project
PROJECT_NAME: PROJECT_DESCRIPTION
Repository Rules
- Prefer existing project patterns over new abstractions.
- Keep changes scoped to the user's request.
- Do not commit secrets,
.envfiles, private keys, certificates, or tokens. - Do not rewrite history or run destructive git commands unless explicitly requested.
- Do not create a release unless explicitly requested.
- If
GITEA_TOKENis available locally, use it only for read-only Gitea API checks such as private repository metadata, package-read visibility, and Actions run status. Never print, commit, or store the token. - After pushing commits that trigger a Gitea workflow, check the workflow run before finishing. If it fails, inspect the failing job/logs, fix the issue when in scope, push again, and continue the check loop.
Commands
Use these commands when available:
LINT_COMMAND
TEST_COMMAND
BUILD_COMMAND
AUDIT_COMMAND
If a command is missing, inspect the project and document the closest safe alternative in .codex/project.md.
Artifacts
Expected artifact output:
ARTIFACT_OUTPUT_DIRECTORY
Expected artifact names:
ARTIFACT_NAME
Security Notes
- Review
docs/security-review.mdbefore release work. - Treat generated credentials and config files as sensitive.
- Keep external network calls documented.
- Prefer local processing for user data.
- Keep CI publishing secrets in repository or organization secrets, not in tracked files.
REGISTRY_TOKENis the default package publishing secret name for the Gitea workflow template.