[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74Q13CYXZP9MASJ7ANWQ725":3,"skill-same:01M74Q13CYXZP9MASJ7ANWQ725":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M74Q13CYXZP9MASJ7ANWQ725","ops-log-hygiene",null,"Check bounded logs for explicitly restarted services, or run a full log-health audit when requested or when symptoms justify it. Use for crash-loop diagnosis, oversized logs, restart churn, or an explicit live-fleet log audit.","robertsreberski\u002Fmono-agent","robertsreberski","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8419292?v=4","01M74PZ37AVTNF0C6ATE0G6HV3","Robert Sreberski","01M74PZ37Y74736M79A4FTQ5AW",2,"GPL-3.0","https:\u002F\u002Fgithub.com\u002Frobertsreberski\u002Fmono-agent\u002Fblob\u002Fmain\u002Fskills\u002Fops-log-hygiene\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: ops-log-hygiene\ndescription: Check bounded logs for explicitly restarted services, or run a full log-health audit when requested or when symptoms justify it. Use for crash-loop diagnosis, oversized logs, restart churn, or an explicit live-fleet log audit.\n---\n\n# Ops log hygiene\n\nRoutine restart proof is target-scoped. A full-fleet log\u002Fprovenance audit is a\nseparate diagnostic operation and is not automatic after every restart.\n\n## Choose the mode\n\n### Bounded post-restart check\n\nUse after restarting named services:\n\n1. Resolve each exact log path from its plist.\n2. Confirm the current PID remains stable across the short check.\n3. Read only the last 20–30 stdout\u002Ferror lines.\n4. Count repeated terminal errors in that bounded tail.\n\n```bash\nplutil -p \"$HOME\u002FLibrary\u002FLaunchAgents\u002F\u003Clabel>.plist\" | grep -E 'Standard(Out|Error)Path'\ntail -n 25 \u003Cresolved-error-log>\ntail -n 25 \u003Cresolved-error-log> | sort | uniq -c | sort -rn | head -1\n```\n\nRepeated fatal lines, a disappearing PID, or a non-zero launchd exit is a failed\nrestart. Report it and diagnose that service; do not widen automatically to the\nwhole fleet.\n\n### Full audit\n\nRun only when the user asks for fleet\u002Flog health, a bounded check finds a\nsymptom, log-maintenance code changed, or there is evidence of disk growth,\ncrash loops, or channel churn. The audit may inspect every named in-scope\nservice for caps, retained generations, launchd state, wrapper provenance, and a\nbounded recent churn window.\n\n## Provenance rules\n\nDifferent consumer classes intentionally use different runtime sources:\n\n- Every managed `com.mono-agent.*` instance, including Personal Agent: its\n  launchd command and instance wrappers must agree with the immutable managed\n  runtime referenced by its plist. The checkout CLI version is not serving-\n  process provenance.\n- Separate-product services: use the installed package graph and `.\u002Fbin\u002Fagents versions`\n  from that product's own checkout; do not compare them to a mono-agent managed-runtime path.\n\nA mismatch within one consumer is a finding. A difference between these\nconsumer classes is not.\n\n## Log size audit\n\nManaged mono-agent logs normally live under `~\u002F.mono-agent\u002Flogs`; separate-product logs\nnormally live under that product's own log directory. Resolve paths from plists\nbefore trusting either convention.\n\nFor a full mono-agent audit, check active files and the three managed retained\ngenerations against the 5 MiB per-file cap:\n\n```bash\nif [ -d \"$HOME\u002F.mono-agent\u002Flogs\" ]; then\n  find \"$HOME\u002F.mono-agent\u002Flogs\" -maxdepth 1 -type f \\\n    \\( -name '*.log' -o -name '*.log.[123]' \\) \\\n    -exec sh -c '\n      for file do\n        bytes=$(stat -f%z \"$file\")\n        [ \"$bytes\" -gt 5242880 ] && echo \"OVER CAP: $file ($bytes bytes)\"\n      done\n    ' sh {} +\nfi\n```\n\nAn active file may briefly exceed the cap between maintenance passes. A retained\nfile over cap, a missing helper, or a repeatedly oversized active file is an\noperations failure. Inspect the maintenance job; never truncate a live writer by\nhand.\n\n## Channel churn\n\nOnly when channel health is in scope, count a bounded recent window rather than\nscanning months of logs:\n\n```bash\ngrep \"$(date -u -v-1H +%Y-%m-%dT%H)\" \u003Cresolved-log> | grep -c \"channel degraded\"\ngrep \"$(date -u -v-1H +%Y-%m-%dT%H)\" \u003Cresolved-log> | grep -c \"scheduling restart\"\n```\n\nCompare the rate with that service's recent baseline and report the exact\nwindow. Do not treat one self-healed timeout as a fleet incident.\n\n## Report format\n\nFor a bounded check, report only the named target, PID stability, tail size, and\ntop repeated error count. For a full audit, add file sizes versus cap, correct\nconsumer-specific provenance, and bounded churn counts. Sanitize tokens and\nnever paste raw private log payloads.\n","# Ops log hygiene\n\nRoutine restart proof is target-scoped. A full-fleet log\u002Fprovenance audit is a\nseparate diagnostic operation and is not automatic after every restart.\n\n## Choose the mode\n\n### Bounded post-restart check\n\nUse after restarting named services:\n\n1. Resolve each exact log path from its plist.\n2. Confirm the current PID remains stable across the short check.\n3. Read only the last 20–30 stdout\u002Ferror lines.\n4. Count repeated terminal errors in that bounded tail.\n\n```bash\nplutil -p \"$HOME\u002FLibrary\u002FLaunchAgents\u002F\u003Clabel>.plist\" | grep -E 'Standard(Out|Error)Path'\ntail -n 25 \u003Cresolved-error-log>\ntail -n 25 \u003Cresolved-error-log> | sort | uniq -c | sort -rn | head -1\n```\n\nRepeated fatal lines, a disappearing PID, or a non-zero launchd exit is a failed\nrestart. Report it and diagnose that service; do not widen automatically to the\nwhole fleet.\n\n### Full audit\n\nRun only when the user asks for fleet\u002Flog health, a bounded check finds a\nsymptom, log-maintenance code changed, or there is evidence of disk growth,\ncrash loops, or channel churn. The audit may inspect every named in-scope\nservice for caps, retained generations, launchd state, wrapper provenance, and a\nbounded recent churn window.\n\n## Provenance rules\n\nDifferent consumer classes intentionally use different runtime sources:\n\n- Every managed `com.mono-agent.*` instance, including Personal Agent: its\n  launchd command and instance wrappers must agree with the immutable managed\n  runtime referenced by its plist. The checkout CLI version is not serving-\n  process provenance.\n- Separate-product services: use the installed package graph and `.\u002Fbin\u002Fagents versions`\n  from that product's own checkout; do not compare them to a mono-agent managed-runtime path.\n\nA mismatch within one consumer is a finding. A difference between these\nconsumer classes is not.\n\n## Log size audit\n\nManaged mono-agent logs normally live under `~\u002F.mono-agent\u002Flogs`; separate-product logs\nnormally live under that product's own log directory. Resolve paths from plists\nbefore trusting either convention.\n\nFor a full mono-agent audit, check active files and the three managed retained\ngenerations against the 5 MiB per-file cap:\n\n```bash\nif [ -d \"$HOME\u002F.mono-agent\u002Flogs\" ]; then\n  find \"$HOME\u002F.mono-agent\u002Flogs\" -maxdepth 1 -type f \\\n    \\( -name '*.log' -o -name '*.log.[123]' \\) \\\n    -exec sh -c '\n      for file do\n        bytes=$(stat -f%z \"$file\")\n        [ \"$bytes\" -gt 5242880 ] && echo \"OVER CAP: $file ($bytes bytes)\"\n      done\n    ' sh {} +\nfi\n```\n\nAn active file may briefly exceed the cap between maintenance passes. A retained\nfile over cap, a missing helper, or a repeatedly oversized active file is an\noperations failure. Inspect the maintenance job; never truncate a live writer by\nhand.\n\n## Channel churn\n\nOnly when channel health is in scope, count a bounded recent window rather than\nscanning months of logs:\n\n```bash\ngrep \"$(date -u -v-1H +%Y-%m-%dT%H)\" \u003Cresolved-log> | grep -c \"channel degraded\"\ngrep \"$(date -u -v-1H +%Y-%m-%dT%H)\" \u003Cresolved-log> | grep -c \"scheduling restart\"\n```\n\nCompare the rate with that service's recent baseline and report the exact\nwindow. Do not treat one self-healed timeout as a fleet incident.\n\n## Report format\n\nFor a bounded check, report only the named target, PID stability, tail size, and\ntop repeated error count. For a full audit, add file sizes versus cap, correct\nconsumer-specific provenance, and bounded churn counts. Sanitize tokens and\nnever paste raw private log payloads.\n",{"name":5,"description":7},"main","fd0e4fa8a7f708a6e2a9c9546a5d2ca04956b06b","skills\u002Fops-log-hygiene",1,"https:\u002F\u002Fgithub.com\u002Frobertsreberski\u002Fmono-agent","https:\u002F\u002Fmono-agent.dev","https:\u002F\u002Fgithub.com\u002Frobertsreberski","linkedin.com\u002Fin\u002Frobert-sreberski","Sr. Growth Engineer @ Jetpack Marketing","2026-11-15 04:01:38",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add robertsreberski\u002Fmono-agent --skill ops-log-hygiene",{"tool":40,"command":41},"bunx","bunx skills add robertsreberski\u002Fmono-agent --skill ops-log-hygiene",{"tool":43,"command":44},"pnpm","pnpm dlx skills add robertsreberski\u002Fmono-agent --skill ops-log-hygiene","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frobertsreberski\u002Fmono-agent\u002Fblob\u002Fmain\u002Fskills\u002Fops-log-hygiene\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"agents\u002Fopenai.yaml","REFERENCE","参考文档",253,"https:\u002F\u002Fgithub.com\u002Frobertsreberski\u002Fmono-agent\u002Fblob\u002Fmain\u002Fskills\u002Fops-log-hygiene\u002Fagents\u002Fopenai.yaml",[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M74Q1JPF65A401Q1E0XE06VZ","worktree-feature","Start isolated mono-agent work with diff-aware setup, keep only required dist fresh, and ship through a PR with safe cleanup. Use for tracked repository changes, multi-commit work, or before executing an implementation plan.","https:\u002F\u002Fgithub.com\u002Frobertsreberski\u002Fmono-agent\u002Fblob\u002Fmain\u002Fskills\u002Fworktree-feature\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M74Q1FDMBVYDVSJCDEWKT6B2","verify-green","Select and run the smallest risk-based verification lane that proves a mono-agent change. Use before claiming a change works, before committing or opening a PR, or when asked to verify, run the gate, make it green, or check architecture.","https:\u002F\u002Fgithub.com\u002Frobertsreberski\u002Fmono-agent\u002Fblob\u002Fmain\u002Fskills\u002Fverify-green\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M74Q1BY5KYZX3390MBVQYJTT","repo-hygiene-gc","Explicit bulk branch\u002Fworktree garbage collection using API-bound deletion proof. Use when asked to clean up the repository or run a deliberate maintenance sweep; ordinary PR cleanup belongs to worktree-feature.","https:\u002F\u002Fgithub.com\u002Frobertsreberski\u002Fmono-agent\u002Fblob\u002Fmain\u002Fskills\u002Frepo-hygiene-gc\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M74Q19BRFX77BH3H8FT7YQD2","release-lockstep","Cut and registry-verify a lockstep npm release of all @mono-agent packages. Use when asked to release, publish to npm, cut vX.Y.Z, or bump the version. A release never implies consumer deployment.","https:\u002F\u002Fgithub.com\u002Frobertsreberski\u002Fmono-agent\u002Fblob\u002Fmain\u002Fskills\u002Frelease-lockstep\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M74Q15Q68EJN55ZEMHTKKX8G","pi-upstream-recon","Investigate the vendored pi packages' real API surface (pi-ai and pi-agent-core) before hand-rolling anything, and run pi version bumps safely. Use before implementing runtime\u002Fprovider\u002Fsession behavior, when pi behavior is surprising, or when asked to \"bump pi\".","https:\u002F\u002Fgithub.com\u002Frobertsreberski\u002Fmono-agent\u002Fblob\u002Fmain\u002Fskills\u002Fpi-upstream-recon\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M74Q0ZS7SRD7HDJM6R6SR834","new-package","Add a new @mono-agent package\u002Fadapter that passes the architecture gate on the first try (catalog entry, README sections, dependency categories, lockstep version). Use when creating any new package, or when check:architecture fails on catalog\u002FREADME\u002Fboundary errors.","https:\u002F\u002Fgithub.com\u002Frobertsreberski\u002Fmono-agent\u002Fblob\u002Fmain\u002Fskills\u002Fnew-package\u002FSKILL.md",[],[]]