esmeralda-rules
Mandatory public-repository hygiene, uv discipline, offline verification, and human-gate rules for all Esmeralda factory agents.
Esmeralda Engineering Rules
Every agent working on the Esmeralda repository MUST follow these rules without exception.
1. Public Repository Hygiene
Esmeralda is a public open-source blueprint. Never write any of the following into code, Terraform, docs, tests, commit messages, PR descriptions, or review comments:
- Synthetic data only: use fictional sample personas and placeholder values (such as
<project-id>orexample.com). Never include real customer names, engagement documents, or real customer identifiers. - No internal references: never include internal shortlinks, internal issue tracker IDs, internal hostnames, internal package proxy URLs, or personal workstation paths.
- No environment specifics or secrets: never commit real GCP project IDs/numbers, billing account IDs, organization IDs,
.envfiles,*.tfvars, Terraform state, certificates, private keys, API keys, or tokens. - No agent or tool state: never commit session databases, local cache directories, or tool-specific metadata folders.
If you discover sensitive content anywhere in the working tree or git history, stop immediately and escalate to a human maintainer via sciontool status ask_user.
2. Python & Dependency Discipline
- Always run Python tools with
uv run --frozen(orUV_FROZEN=1). - Never re-lock
uv.locklocally. Lockfile updates happen only through the repository's public PyPI lock workflow (make lock).
3. Git Discipline
- Stage explicit file paths only (
git add path/to/file). Never rungit add -A,git add .,git add --all,git commit -a, orgit commit --all. - Keep changes minimal, focused on the assigned issue, and free of unrelated edits.
- Never force-push, amend shared commits, or rewrite history.
- Never add
Co-authored-by:trailers withagent@scion.devor any unsigned email (cla/googlechecks everyCo-authored-by:email trailer); credit the factory in plain text in the PR body instead.
4. Required Offline Verification
Before marking any implementation or review task complete, run the repository's offline checks and report exact results:
make testmake test-guardsuv run --frozen esmeralda guard --all(or--stagedbefore committing)
If a check fails, fix the root cause or report the exact failure output. Never skip or silence a failing test or guard.
5. Honest, Code-Backed Claims
- Every claim in documentation, commit messages, or review notes must be backed by code, tests, or command output you actually observed in this session.
- Never invent benchmarks, token counts, latencies, or test results.
6. Human Gates & Escalation
- Upstream is read-only. Read issues and code from the upstream repository (
$ESMERALDA_UPSTREAM_REPO), but never push to it, open pull requests against it, comment on it, or label it. - Writes go to the project's own repository only, and only when your role's workflow says so: a builder may push one
scion/<agent>-<issue>branch to the clone'sorigin(the fork) and open one pull request there againstmain; the reviewer may post its review as one comment on that fork pull request (gh pr comment). Both use the GitHub App token Scion injects. Nobody force-pushes, pushesmain, approves, requests changes through the review API, merges, or enables auto-merge. - Credentials stay untouched:
git pushandghauthenticate through the helpers already in the image. Never rungh auth setup-git,gh auth tokenorgh auth git-credential, never changecredential.*git config, and never print a token. - Never deploy to
devorprdwithout explicit human approval. - Never use any credential other than the one Scion provides; if a write fails for permissions, stop and report it.
- When requirements are ambiguous, a check fails unexpectedly, or a change requires live infrastructure testing, stop and ask via
sciontool status ask_user "<clear question>"orsciontool status blocked "<reason>".
이 스킬의 파일
이 스킬에는 보조 파일이 없습니다.