agent-readable-secrets
Use when agent-readable project content may expose third-party data, credentials, risky source text, prompts, or safety lexicons; when changing read guards; or when reviewing privacy/redaction boundaries.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-29
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- agent-readable-secrets
- description
- Use when agent-readable project content may expose third-party data, credentials, risky source text, prompts, or safety lexicons; when changing read guards; or when reviewing privacy/redaction boundaries.
03 SKILL.md 正文
Agent-readable content
Anything an agent opens can become provider context. Treat local reads as egress, independently of the application's request-path privacy controls.
Decide the risk first
- Confidentiality: live credentials or third-party records are a refusal, not merely a routing preference. Do not read or repeat their values.
- Ban risk: content attributable to a query may risk an account; keep it off unsuitable remote routes.
- Misattribution: a repository that stores offensive-capability prompts or scenarios is a standing account risk. A disclaimer does not make such material safe to commit; keep it outside the readable tree and document its location and access policy without quoting it.
Report findings by path, field/category, and protection status—never by value. Do not use a hosted model to decide whether content is safe to send to one.
Stored data and safeguards
- Locate agent-readable third-party data, including transcripts, imports, caches, backups, fixtures, and real-looking examples. Use synthetic fixtures in tracked source.
- Check actual read boundaries, not
.gitignorealone. A marker and an ignore rule are conventions; encryption is a control only for readers without the key. State this distinction accurately. - Protect every stored representation of sensitive bodies; leave the routing and audit envelope readable when possible so recovery and review remain viable. Document which fields remain plaintext.
- Keep withheld content visibly withheld: preserve safe metadata and name the reason rather than returning an empty body.
Defensive source text
Blocklists, filters, and their tests necessarily contain material they block.
Keep them legible and put a defensive marker in the first few lines, for
example # project:defensive — BLOCKLIST; refuse, never produce. Do not
obfuscate them. Split stable, severe vocabulary from routinely edited
dual-use vocabulary when the code has a mechanical boundary, preserve matching
order, and test that the resulting pattern set is unchanged.
Do not commit offensive-capability personas, exploit instructions, or similar generative material merely with a safety header. Put it outside the repository and route any execution locally under the project's policy.
Read guards and migrations
-
A guard should inspect actual file reads, not search strings, flags, or comments that mention a protected path. Test its allow/deny matrix in a synthetic repository, including every configured storage relocation.
-
An explicit opt-in may relax a gate; inferred trust (localhost, an internal caller, or a test-looking command) must not.
-
A manifest is not
.gitignore:!does not negate. The shared guard (~/.agents/hooks/agent-guard.py) drops#comments and nothing else, so a leading!is never stripped and the line reachesmatch_rulesas a literal pattern. Measured with rules['.env', '!.agent-env']:asked for matched rule .env.env.agent-envNone!.agent-env!.agent-envSo
!xexempts nothing and matches only a file literally named!x. It is the worst available shape: it reads as an exemption and silently does nothing. To make a path readable, do not write a rule for it at all — and say so in a comment, so the omission looks deliberate rather than forgotten.The trap hides because it usually "works". A
!line added beside a path that was never denied produces exactly the intended behaviour, teaching whoever wrote it that the idiom is sound — until they use it to exempt something that really is denied. -
Before Alpha, development data is deleted rather than backfilled (the active-development rule). For data a person would miss, a reclassification/backfill is opt-in, dry-run by default, idempotent, and requires a fresh backup that includes any needed key. Report scanned, changed, and skipped records without exposing bodies.
04 同仓库更多 Skills
train
Launch a new max_llm training run on both GPUs (RTX 4090 + RTX 3090 Ti) through torchrun DDP, resolving the TOML config by name or path. Use only when the user explicitly asks to start, launch or begin a run — "resume", "continue" or "keep training" mean the existing run; takes an optional config name or path.
serve-live
Before a person looks at a running service, make sure what is running IS the code in the checkout. Restart the services your change actually touched — not every service — and verify each is serving the current commit rather than merely answering; check the remaining dependencies are up without bouncing them. Use whenever you finish work a person will view in a browser or client, whenever you say a page or service is ready, after any commit that changes served code, and when asked to 'restart', 'refresh the services', 'is it live', or 'serve the latest'. Also covers waiting for lazy warm-up before calling a service ready.
review
Review a local change, branch, pull request, or stack for correctness, regressions, security, tests, and unnecessary complexity. Use when asked to review rather than implement.
regression-coverage
Reshape a slow or brittle test suite around observable user journeys and published contracts. Use when pruning tests, repairing weak smoke coverage, or addressing repeated feature regressions.
pr-babysit
Monitor selected pull requests and report or safely act on review, CI, mergeability, and stack state.
keel
Use a project's local keel code graph to assess change impact, find callers and reuse candidates, validate a plan, or check an edit. Applies only in a repository with a .keel/ directory; skip it for prose-only work.