read-for-comments
Mandatory local standards library and archive. Before fetching any standard from the internet, the agent MUST check the Serena `standard/` archive and this skill's `references/` seed; after ANY standard-body download, the agent MUST archive it per the event-bound Archival Rule. Governs standard lookup, fetch, archival, and the family and full-body rules.
- License 许可
- BSD-3-Clause
- 所属仓库
- kalaverin/skills
- 最近更新
- 2026-11-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- read-for-comments
- version
- 0.1.1
- requires
- [ "frontmatter-protocol", "serena-protocol" ]
- triggers
- { "always": true, "reason": "Local archived standards must be preferred over web fetches in every session, and every standard download must be archived." }
- description
- Mandatory local standards library and archive. Before fetching any standard from the internet, the agent MUST check the Serena `standard/` archive and this skill's `references/` seed; after ANY standard-body download, the agent MUST archive it per the event-bound Archival Rule. Governs standard lookup, fetch, archival, and the family and full-body rules.
02 资源文件 3
- 参考文档README.md4.2 KB
- 参考文档references/rfc2119.md4.5 KB
- 参考文档references/rfc8174.md5.8 KB
03 SKILL.md 正文
SKILL: Local Standards Library & Archive
This skill owns standard lookup and archival. Two stores with distinct roles:
- Archive (searched FIRST): Serena memories at
standard/<family>/<family>_<id>.md— every standard ever fetched for this project. The fetch-once archive. - Seed (searched SECOND): this skill's
references/directory — a tiny curated set of frequently needed standards, hand-filled by the user, traveling with the skill mirror.
1. Lookup Gate (HARD)
Before ANY internet search for a standard, in this exact order:
- Check the archive:
list_memorieswith topicstandard(or a path probe forstandard/<family>/<family>_<id>.md). On a hit, read that memory. - Check the seed:
fd -t f . references/. On a hit, read that file. - Only when BOTH miss: go to the web per
kagi-search.
You MUST NOT fetch a standard from the internet that already exists in either store.
Current seed inventory:
| Standard | File |
|---|---|
| RFC 2119 — Key words for requirement levels | references/rfc2119.md |
| RFC 8174 — Ambiguity of uppercase vs lowercase in RFC 2119 | references/rfc8174.md |
2. Fetch Rules
- Content needed in context (answer, quote, procedure): use
kagi_extractorkagi_summarizerper thekagi-searchskill. - Archival download (the body must be stored): use a raw downloader (
curl,wget, or FreeBSDfetch) into a scratch path — the body NEVER passes through the agent's context. Raw fetch for the exact bytes of a standard is the sanctioned exception ofkagi-search§1.1.
3. Archival Rule (HARD, event-bound)
Trigger: ANY download of a standard body from the web, no matter why it was fetched. Archival MUST complete BEFORE the content is used in the answer. No importance judgement: every fetched standard body is archived.
Pipeline (the bulk-import carve-out of serena-protocol [ref: #serena-memory-mutation]):
- Download into
.tmp/standards/<family>-<id>.mdwith a raw downloader. mvinto.serena/memories/standard/<family>/<family>_<id>.md.- Subagent attestation: a subagent receives the file path and the URL, then validates and confirms — this IS a standard; the file is complete (beginning and end present); no HTML or other garbage — gives a two-word description of the document, and drafts the frontmatter (~10 lines of YAML:
title, the tracking fields,source: <URL>,family: <family>). On attestation failure (not a standard, broken file, garbage inside): delete the moved file, report to the user, and STOP. If no subagent is available, the main agent attests persubagents-protocol§12 and states the limitation. - Stamp the header:
edit_memorywithmode: "regex",needle: "\A",repl: "<frontmatter>\n\n# <Title>\n\n". The synthetic H1 (matchingtitle) is the boundary — the raw body below it stays UNTOUCHED. One-H1 waiver: archive entries are exempt from the one-H1 rule — the synthetic H1 is the only document-level heading; inner headings of the raw body are archive content, not document structure. - Verify the header ONLY via the canonical frontmatter extraction (
frontmatter-protocol§6, Form 1) — neverhead/tail. - Run
just serena-checkpointfrom the workspace root.
Retro-archival (HARD): if you discover a standard that was fetched but never archived, archive it immediately on discovery and report the skip to the user.
4. What Counts as a Standard
A versioned technical text issued by an authoritative body with a stable URL. Families (the <family> path segment): rfc (IETF RFC), std (IETF STD), bcp (IETF BCP), ietf (IETF Internet-Draft — note draft status on use), pep (Python PEP), aip (Google AIP), owasp (OWASP cheat sheets, ASVS, API Top 10), w3c (W3C REC), whatwg (WHATWG living standards), zmpc (ZeroMQ RFC), cwe (MITRE CWE entries), gep (Google eng-practices), wicg (WICG Community Group reports — NOT W3C TR; status must be noted on use).
Fetch URL Registry
The canonical fetch URL pattern for every registered family. When archiving a standard (§3), fetch from THESE URLs; do not invent mirrors or alternate hosts.
| Family | Authority | Fetch URL pattern |
|---|---|---|
rfc |
IETF RFC Editor | https://www.rfc-editor.org/rfc/rfc<N>.txt |
std |
IETF RFC Editor | https://www.rfc-editor.org/std/std<N>.txt (meta-document over constituent RFCs) |
bcp |
IETF RFC Editor | https://www.rfc-editor.org/bcp/bcp<N>.txt (meta-document over constituent RFCs) |
ietf |
IETF | https://www.ietf.org/archive/id/draft-<ID>.txt (Internet-Draft; <ID> is the full draft name including version, e.g. ietf-httpbis-priority-00) |
pep |
Python (PSF) | https://peps.python.org/pep-<NNNN>/ |
aip |
https://google.aip.dev/<N> |
|
owasp |
OWASP Foundation | cheat sheets: https://cheatsheetseries.owasp.org/cheatsheets/<Name>.html; API Top 10: https://owasp.org/API-Security/editions/2023/en/0x11-t10/; ASVS: https://owasp.org/www-project-application-security-verification-standard/ |
w3c |
W3C | https://www.w3.org/TR/<shortname>/ |
whatwg |
WHATWG | https://<spec>.spec.whatwg.org/ (e.g. html, url, fetch) |
zmpc |
ZeroMQ community | https://rfc.zeromq.org/spec/<N>/ |
cwe |
MITRE | https://cwe.mitre.org/data/definitions/<N>.html |
gep |
Google eng-practices | https://google.github.io/eng-practices/<path> (e.g. review/reviewer/standard.html) |
wicg |
W3C WICG (Community Group) | https://<group>.github.io/<spec>/ (e.g. wicg.github.io/scroll-to-text-fragment/) |
- Full body only: an archive entry is the complete standard text (raw download or
kagi_extract).kagi_summarizeroutput is a derivative and is NEVER archived. If a summary sufficed for the answer but the document is a standard, fetch the full body for the archive anyway. - Not standards: blogs, tutorials, vendor documentation (e.g. Temporal docs), marketing pages — never archived here.
- New families are owned by THIS skill (families are path segments inside the registered
standard/scope, not scopes themselves — no registry amendment is needed). Propose a new family to the user before first use and extend the list here on approval.
5. Violation Protocol
If you fetch a standard from the web without checking both stores, use a fetched standard without archiving it, archive a summary or a non-standard, or edit the raw body of an archive entry, halt immediately, discard the offending step, perform the correct lookup/archival per §1/§3, and record the violation in bugs/project/read_for_comments_bypass or notes/agent/read_for_comments_bypass.
04 同仓库更多 Skills
todo-protocol
Mandatory protocol for using the SetTodoList tool. Governs when to create a todo list, how to update it without violating immutability rules, how to synchronize item status after every tool call, and the forbidden mutations. Always active.
subagents-protocol
Mandatory protocol for delegating work to built-in subagents (coder, explore, plan), also called our bots by users. Always active. Owns the context-hygiene delegation test (material vs answer, cost balance, warm-instance reuse), launch parameters (mandatory explicit `model`), the single-source model-selection table, answer budgets, degradation handling, the launch checklist, and the role library for delegated review/audit with intent routing (`references/roles.md`).
serena-protocol
MANDATORY skill for Serena (MCP) memory, knowledge base, and symbolic code exploration operations. Use whenever the agent needs to: read or write Serena memories, mutate or persist memory, explore code via symbolic MCP tools, resolve contradictions in stored knowledge, or follow memory metadata, naming, and routing conventions.
python-lang
MANDATORY skill for Python code. Use when writing, editing, refactoring, or reviewing Python files, modules, packages, classes, functions, type annotations, imports, exceptions, comprehensions, decorators, or docstrings. Enforces Google Python Style Guide and a mandatory, unconditional Ruff format+check pipeline scoped strictly to the agent's own changes.
preflight-checklist
Mandatory session-initialization closer and Startup Gate audit. Always loaded. Runs EXACTLY ONCE at session start, after all skill loading completes: verifies Startup Gate completion with evidence (mirror sync, forced import, discovery, activation, memory priming, MCP declaration, think block), runs dynamic session checks derived from the active skill set (mode states, delegation readiness), and reports a compact evidence-backed verdict table to the user before the first task output. Any FAIL is fixed before proceeding.
markdown-protocol
MANDATORY skill for Markdown authoring rules and the Markdown Headings as a Public API standard. Always active. Governs how the agent writes and edits any Markdown file: line discipline, date format, frontmatter pairing, markers and anchors, heading identity (slugs, renames, uniqueness), section shape and size, deprecation, and the errata conformance queue. The full normative standard lives in references/specification.md with rationale in references/rationale.md.