Daily Skill Log Review
Use this skill to keep skill instructions fresh by converting repeated friction in logs into explicit SKILL.md guidance.
Daily Workflow
- •Run in review mode to generate a JSON review artifact.
- •Run the one-command friendly report for approve/reject guidance.
- •Review and mark approved items in the review file.
- •Run apply-review mode to append only approved instructions.
- •Commit the updated
SKILL.mdfiles.
PowerShell example:
powershell
python skills/daily-skill-log-review/scripts/review_logs_and_update_skills.py ` --logs-root C:/Users/Noah2/.codex/log ` --logs-root C:/Users/Noah2/.codex/sessions ` --logs-root ./.agent ` --skills-root skills ` --hours 24 ` --min-occurrences 3 ` --min-skill-mentions 1 ` --min-confidence 0.75 ` --require-path-match-for-skill-usage ` --emit-review .artifacts/daily-skill-log-review/review-manual.json
Apply approved review:
powershell
python skills/daily-skill-log-review/scripts/review_logs_and_update_skills.py ` --apply-review .artifacts/daily-skill-log-review/review-manual.json
Friendly report (plain language):
powershell
powershell -ExecutionPolicy Bypass -File scripts/run_daily_skill_log_review.ps1 -FriendlyReport
Log and Skill Routing Rules
- •Parse recent
*.log,*.txt,*.md,*.jsonl, and*.ndjsonfiles. - •Detect recurring patterns when a normalized line appears at least
--min-occurrencestimes. - •Classify patterns as
errorortask. - •Detect skill-usage signals (mentions of skill names/paths in usage context) and emit skill-improvement guidance.
- •Detect repeated common agent errors and add guardrails, including PowerShell compatibility pitfalls (
&&/||, parser errors, cmdlet-not-found patterns). - •Route each pattern to a target skill by:
- •explicit
skills/<skill-name>/...references in logs, - •direct mentions of a skill name,
- •token overlap against discovered skill names/frontmatter.
- •explicit
- •Confidence-score each candidate; only keep entries at or above
--min-confidence. - •Append approved instructions under
## Continuous Improvementsin the targetSKILL.md.
Recurring Execution
Schedule this command once per day (Task Scheduler, cron, or CI on a daily trigger):
powershell
powershell -ExecutionPolicy Bypass -File scripts/schedule_daily_skill_log_review.ps1 -Time 12:00
Recommended guardrail: keep scheduler runs in --emit-review mode and apply changes only from reviewed artifacts.