dev-learn
Turns what /dev-audit found into weights the next /dev-post draft actually uses.
analytics + ~/.claude/devto/log.md -> /dev-audit -> dev-learn.py audit --apply -> reweighted formulas/tags -> next draft.
When to run
After /dev-audit has filled engagement_rate for at least 10 posts. Rows without a valid engagement rate do not count. Each post is applied once; rerunning the same log will not increase weights again.
Run it
Run the script from the installed dev-learn skill directory. Common global paths:
OpenCode (macOS/Linux):
bashpython3 ~/.config/opencode/skills/dev-learn/dev-learn.py audit # dry-run python3 ~/.config/opencode/skills/dev-learn/dev-learn.py audit --apply # apply once
Claude Code (macOS/Linux):
bashpython3 ~/.claude/skills/dev-learn/dev-learn.py audit python3 ~/.claude/skills/dev-learn/dev-learn.py audit --apply
Skills CLI project install:
bashpython3 .agents/skills/dev-learn/dev-learn.py audit
Windows PowerShell (change .config\\opencode\\skills to .claude\\skills for Claude Code):
powershellpython "$HOME\\.config\\opencode\\skills\\dev-learn\\dev-learn.py" audit python "$HOME\\.config\\opencode\\skills\\dev-learn\\dev-learn.py" audit --apply
status is an alias for audit if you only want the current weights.
What changes
dev-post/title-formulas.json- +0.1 weight when a formula's mean engagement >= account mean, -0.1 when <= half the mean. Weight 0 moves toarchive.dev-post/tag-suggestions.json- same rule forbroadandnichetags, matched against the log'stagsfield.dev-human/slop.json- untouched. Slop words are voice-specific; review them manually fromhumanize.py --report.dev-profile/rubric.json- flagged only. Rebalancing needs follower-growth data the log does not capture yet.
Rules
- Never delete a formula, tag, or item. Demote to weight 0 and move to
archive. - Dry-run first and show the user the proposal before
--apply. - Demotion is relative to this account's own mean, not an absolute threshold.
- After
--apply, hand off to/dev-postso the next draft picks up the new weights.
Skipped (ponytail)
- No auto-fetch of dev.to analytics (needs an API key and setup);
/dev-auditsupplies the numbers. - No new learning file format - reuses the JSON files
/dev-postalready reads.


