Install
$ agentstack add skill-ctx42-skills-edit ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ● Network access Used
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
edit
Drive an existing SRD toward the SRD standard by editing the source in place.
Boundaries
The write-only editor of an existing SRD, applying changes one confirmed edit at a time — the counterpart to the read-only review. It must not invent or restate rules (defer all format, style, logic, and rules to create's reference files), nor edit metadata (Owners, Initiative, Designs), set back-links, or change Status — only flag those gaps (STR-2..7, STA-*). Acceptance stays a human decision. It never writes .review.md — review owns that file across all modes; edit only reads it.
Sources of truth
The rules, checklist, procedures, template, and glossary live with create; reuse them, never duplicate. This skill depends on ../create/references/*, ../create/assets/*, and ../create/scripts/* — do not move or rename create. If any referenced file is missing at run time, stop and tell the user; do not proceed. Read these before editing:
- [../create/references/srd-standard.md](../create/references/srd-standard.md)
(eager) — the rules (STR, STA, LANG, REQ, GLO, SCO, MD, Quality Bar). Every edit and check defers to these ids; re-validation checks against them directly.
- [../create/references/authoring-guide.md](../create/references/authoring-guide.md)
(eager) — house extensions (US English, sub-numbering, terminology consistency, the consistency pass) and the Bad→Good defect classes to fix toward.
- [../create/references/srd-procedures.md](../create/references/srd-procedures.md)
(on-demand: session start) — shared operating procedures (glossary resolution).
- [../create/assets/srd-template.md](../create/assets/srd-template.md)
(on-demand: restructuring) — the required section order.
- [../create/scripts/glossary-fingerprint.sh](../create/scripts/glossary-fingerprint.sh)
(run, not read) — hashes the shared glossary so its term digest is rebuilt only on change; the digest keeps term edits linking, not redefining.
Documentation corpus (when available)
Some setups expose the platform's live documentation over the srd-doc MCP server — the read tools mcp__srd-doc__search (query + optional k), mcp__srd-doc__get_doc (document id), and mcp__srd-doc__list_docs (no args). When a new or changed requirement asserts something about existing system behaviour, search the corpus to confirm it before accepting the edit. Degrade MCP → the srd-doc REST mirror (curl 'http://:7777/search?q=TEXT&k=5', .../docs/) → scoped Grep/Read over a local corpus checkout, falling through only when a step genuinely is not there. Absent a corpus, edit offline as before.
Reporting a doc gap
When the corpus cannot confirm such a claim — missing, wrong, incomplete, or ambiguous docs — that is a documentation gap, not an SRD defect. Hand it to srd:report-doc-gap, which owns capture, the grill, and the confirmed filing; invoke it on discovery — it buffers the gap without interrupting the edit — and at session start, where it drains any gaps left unfiled. Editing the SRD text stays this skill's job; only corpus deficiencies cross to report-doc-gap.
Session start (every mode)
Before any edit:
- Read the whole SRD top to bottom.
- Approval gate. Read the
Statusmetadata, pre-fill approved (Accepted)
vs in-progress (anything else), then show it and ask the user to confirm or override. The answer governs id rules for the whole session — never trust Status silently.
- Glossary. Run the glossary-resolution procedure in
[../create/references/srd-procedures.md](../create/references/srd-procedures.md).
Id rules
The approval gate decides what may happen to requirement / scope / glossary ids:
- In-progress — free to renumber a group after a split, merge, add, or
remove, and to fix collisions or gaps (REQ-2/3/4). Update every cross-reference the change touches.
- Approved — existing ids are frozen. Additions only, via sub-numbering
(GR-1a, GR-1b); never renumber or rename an existing id. If a real fix cannot be done without touching an existing id, try add-only first; if that is impossible, present the conflict and the trade-off and leave it flagged unless the user explicitly approves the id change.
Whenever any id must change, state the change and get explicit approval as part of the one-change confirmation.
Edit discipline
All interactive editing follows the same loop. Per change:
- Propose exactly one change: its location/id, the problem (cite the rule
id), the before and after text, and a one-line rationale.
- Apply only on explicit approval. Never batch unrelated changes. Never edit
without confirmation.
- Re-validate the affected entry + cross-refs immediately against the
rules in [../create/references/srd-standard.md](../create/references/srd-standard.md), focusing on the checks the edit can touch: scope coverage (SCO-2/3), id uniqueness/order (REQ-3/4), term use (GLO-3), and any requirement that references or is referenced by the edit. Report if the fix introduced a new problem. When the edit asserts a claim about existing system behaviour and a corpus is available, confirm it against the docs (see [Documentation corpus](#documentation-corpus-when-available)) and delegate any doc gap to srd:report-doc-gap.
- At session end, re-check the whole document against every rule in the
standard plus the consistency pass in [../create/references/authoring-guide.md](../create/references/authoring-guide.md), and report what remains.
Write every edit to the LANG, MD, and REQ rules in [../create/references/srd-standard.md](../create/references/srd-standard.md) (US English and one term per concept per the authoring guide). When an edit restructures sections, follow the order in [../create/assets/srd-template.md](../create/assets/srd-template.md).
Modes
Detect the mode from the user's words; the default is interactive.
edit path/to/srd.md→ interactive (default).edit path/to/srd.md .review.md(or with pasted feedback) →
feedback.
edit path/to/srd.md polish→ polish.edit path/to/srd.md→ targeted.
interactive (default)
- Run the session-start steps.
- Front-load a grouped issue summary — read the whole SRD and present every
issue found, grouped by document section (Metadata, Introduction, Glossary, Scope, Requirements), each citing its rule id. Edit nothing yet.
- Walk entry by entry in document order — each requirement (
PFX-n), each
glossary term, each scope item — applying the edit-discipline loop to every fix the user approves. Move to the next entry only after the current one is resolved or skipped.
- Close with the full consistency pass and the chat summary.
feedback
Apply findings from a review. Never write the review file — review owns it. After editing, tell the user to run review check to reclassify what landed.
- Input is a
.review.mdpath or feedback pasted inline (email,
ticket, chat). Parse the findings from either.
- Run the session-start steps.
- Work findings in severity order — blocker → major → minor (use the
review's tags and finding numbers; for untagged pasted feedback, judge severity from the rule).
- For each finding, run the edit-discipline loop: propose the fix, apply on
approval, re-validate. Reference findings by their number in the chat summary; leave the review file untouched regardless of outcome.
- Close with the full consistency pass and the chat summary, then point the
user to review check.
polish
Mechanical-only cleanup, still confirm each change (same loop). Scope is limited to: 80-column wrap (MD-2), British → US spelling, identifier format/order (REQ-2/3/4 — subject to the approval gate), keyword capitalization (LANG-4), valid Markdown (MD-1), stray example/note text (REQ-7), spacing and punctuation. Do not rewrite requirement meaning or restructure. Close with the chat summary.
targeted
Edit one entry the user points to — by requirement id (GR-3a), quoted text, or free description ("the login timeout rule").
- Run the session-start steps.
- Locate the target. For quoted text or a description, confirm the match
before editing.
- Apply the edit-discipline loop to that entry.
- Always run a consistency check after — the affected entry plus its
cross-refs — and report whether the edit introduced any inconsistency.
Deliverable
Close every session with an in-chat summary — a manifest of approved edits, not a re-narration of diffs the user already saw:
- What changed: entry/id, one line each.
- What was flagged and left (frozen-id conflicts, metadata gaps, anything the
user declined).
- Outstanding human follow-ups (placeholders, back-links, Status).
Report tersely: no preamble or narration; state each fact once; don't restate output the user can already see.
Self-learning
Read this skill's lessons and obey them: sibling LESSONS.md, else $HOME/.agent-data/ctx42-skills/lessons/srd/edit.md when this directory is read-only. On a correction or self-caught mistake, append a one-line rule to whichever is writable (creating it) and report where.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: ctx42
- Source: ctx42/skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.