write-ops-log
marin-community/marin/.agents/skills/write-ops-log/SKILL.md
Publish a tagged Echo record after a live infrastructure incident, then link its canonical URL from the associated pull request or issue.
Skill3.9k starsChanged 25 days ago
What's in it
- Skill: Write an Ops Log
- Search before writing
- Draft the Echo entry
- Write the record
- Keep the record useful
--- name: write-ops-log description: Publish a tagged Echo record after a live infrastructure incident, then link its canonical URL from the associated pull request or issue. --- # Skill: Write an Ops Log Publish the incident record to Echo. Do not add a repository debug-log file. An incident is a service, production run, or shared operational system failure or degradation that required diagnosis or mitigation. Ordinary code debugging, implementation notes, experiment progress, and local failures are not incident records. The audience is a future engineer who must quickly decide what to check or do next. Record the smallest set of facts that supports that action. Link raw evidence and detailed chronology rather than reproducing them; Echo entries consume limited model context whenever they are retrieved. ## Search before writing If the current investigation already fetched an Echo entry for this incident, reuse it and edit that entry without repeating the search. Otherwise, invoke `consult-echo` and run its complete search-before-write sequence. Start with a natural-language `infra/marina/apps/echo/cli.py search`, fetch likely matches with `get <source-id>`, and use `grep` for the exact error or run identifier. Create a new entry for a different incident even when the symptom resembles an older one; link related incidents and create or extend a separate synthesis only when they establish a reusable cross-incident pattern. ## Draft the Echo entry Write an OKF document in a temporary file: ```markdown --- type: wiki-note title: "Incident YYYY-MM-DD: <system> — <symptom>" use_when: when investigating <specific symptom or exact error> tags: - incident - debugging - ops - <system> - <severity> - <resolution> --- # <System or component>: <symptom> ## TL;DR - <user-visible symptom> - <diagnostic discriminator or immediate action> - <fix or remaining caveat> ## Response <The shortest safe procedure for diagnosing, mitigating, or avoiding the incident.> ## Cause and resolution <Only the evidence needed to justify the response and explain the resolution.> ## Artifacts - <Canonical PR, issue, dashboard, durable log bundle, or report> ``` Use the incident's investigation date. Use lowercase kebab-case tags and no more than 20. Always include `incident` and `debugging`; add `ops` for infrastructure work, followed by the subsystem, severity, and resolution. Omit any body section that adds no actionable value. Add a compact original report, investigation step, or course correction only when it changes how a future reader should recognize or respond to the incident. ## Write the record Create a new incident: ```bash uv run infra/marina/apps/echo/cli.py wiki add --file incident.md ``` Continue the same incident: ```bash uv run infra/marina/apps/echo/cli.py wiki show <id> > incident.md # Edit incident.md. uv run infra/marina/apps/echo/cli.py wiki edit <id> --file incident.md ``` Both commands print the canonical Echo URL. Return that URL and add it to the associated PR description or issue. Do not commit the temporary OKF file. ## Keep the record useful - Preserve exact error strings and canonical evidence URLs. - Prefer decisions, discriminating evidence, and response steps over narrative. Do not paste raw logs, duplicate source artifacts, or narrate every tool call. - Link readers to the external source of record when its detail is not needed to choose or carry out the action. - Keep incident-specific detail here. Promote recurring procedures and guardrails to the relevant `OPS.md`. - Update `docs/` when behavior or configuration guidance belongs with the repository. - Record an unknown root cause as unknown; do not fill the gap with speculation.
More agent context in marin-community/marin
43 other files this repository gives its agents.
AGENTS.md
CLAUDE.md
Skill
- ab-test-zephyr.agents/skills/ab-test-zephyr/SKILL.md
- add-dataset.agents/skills/add-dataset/SKILL.md
- add-grant.agents/skills/add-grant/SKILL.md
- add-pallas-kernel.agents/skills/add-pallas-kernel/SKILL.md
- archive-experiments.agents/skills/archive-experiments/SKILL.md
- babysit-zephyr.agents/skills/babysit-zephyr/SKILL.md
- change-grug.agents/skills/change-grug/SKILL.md
- commit.agents/skills/commit/SKILL.md
- consult-echo.agents/skills/consult-echo/SKILL.md
- debug.agents/skills/debug/SKILL.md
- deploy-hero-change.agents/skills/deploy-hero-change/SKILL.md
- file-issue.agents/skills/file-issue/SKILL.md
- fix-issue.agents/skills/fix-issue/SKILL.md
- launch-rl.agents/skills/launch-rl/SKILL.md
- lint-review.agents/skills/lint-review/SKILL.md
- manage-hero-run.agents/skills/manage-hero-run/SKILL.md
- marina-applet.agents/skills/marina-applet/SKILL.md
- noslop.agents/skills/noslop/SKILL.md
- onboard-marin.agents/skills/onboard-marin/SKILL.md
- organize-experiments.agents/skills/organize-experiments/SKILL.md
- profile-training.agents/skills/profile-training/SKILL.md
- query-finelog.agents/skills/query-finelog/SKILL.md
- refresh-fork.agents/skills/refresh-fork/SKILL.md
- research.agents/skills/research/SKILL.md
- review-grant.agents/skills/review-grant/SKILL.md
- review-pr.agents/skills/review-pr/SKILL.md
- run-ferries.agents/skills/run-ferries/SKILL.md
- scan-logs.agents/skills/scan-logs/SKILL.md
- scrub-docs-code-parity.agents/skills/scrub-docs-code-parity/SKILL.md
- scrub-experiment-issue-tldrs.agents/skills/scrub-experiment-issue-tldrs/SKILL.md
- scrub-reflection-self-improvement.agents/skills/scrub-reflection-self-improvement/SKILL.md
- trace-pulumi-diff.agents/skills/trace-pulumi-diff/SKILL.md
- triage-canary.agents/skills/triage-canary/SKILL.md
- update-docs.agents/skills/update-docs/SKILL.md
- upload-hf-model.agents/skills/upload-hf-model/SKILL.md
- use-fsutil.agents/skills/use-fsutil/SKILL.md
- use-iris.agents/skills/use-iris/SKILL.md
- write-pipeline.agents/skills/write-pipeline/SKILL.md
- write-tests.agents/skills/write-tests/SKILL.md
- writing-style.agents/skills/writing-style/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

