Skip to content
项目

关于

Agent skills for developers who publish on DEV.to: draft in your voice, strip machine tells, and change a tactic only after ten audited posts.

开发工具

这些数字如何统计

90 星标1 复刻 +5 24小时

实测星标增长

24小时
+5
7天
+26
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

dev-skills

Nine agent skills for writing dev.to posts in your own voice, auditing what actually worked, and feeding those results into the next draft. Works with OpenCode, Claude Code, and any agent that loads SKILL.md files.

tests

Why my AI writer waits 10 posts before learning - the dev-skills learning loop

Install

Node is only needed for npx; the scripts themselves need Python 3.9+.

npx skills add naheel0/dev-skills

The CLI prompts for your agent and scope. To take only some skills, pass --skill:

npx skills add naheel0/dev-skills --skill dev-post --skill dev-learn

The dev-learn helper script ships inside that skill, so it works from the folder the CLI installs. Manual install for OpenCode, Claude Code, and Windows PowerShell is below.

What's inside

Per-skill docs - every file each skill reads and writes, its rules and its config - live at dev-skills.naheel.me/skills. This README is the index.

skill what it does
/dev-post Turn one raw idea into a full draft, three title options, and a copy-ready block. Never publishes without your "yes".
/dev-human Strip AI tells from a draft and score it against a human-sounding check.
/dev-comment Write a comment on someone else's post - three angles, one full comment.
/dev-reply Triage the comments under your own post and draft the replies worth sending.
/dev-plan Build the week: which posts to write, formula and tags for each, when to publish, when to reply.
/dev-audit Post-mortem on your published posts using analytics + log.md. Rank by engagement rate, not views.
/dev-learn Apply the audit's findings: promote winning formulas/tags, demote losers.
/dev-profile Score your dev.to profile out of 100 and rewrite the parts that lose points.
/dev-repurpose Turn a long asset (video, newsletter, transcript) into a dev.to article with a canonical URL.

Why this exists

Generic writing advice is a prior. Your own posts are the evidence. These skills close the loop:

log.md --> dev-learn.py fetch --> /dev-audit --> dev-learn.py audit --apply --> /dev-post
           fills views,          ranks by      promotes winning                next draft
           reactions, comments,  engagement    formulas and tags,              uses the
           followers             rate,          demotes losers                 new weights
                                 not views

Two deliberate limits: fetch needs a dev.to API key, and audit --apply rewrites weight files, so it only runs when you ask. Nothing here posts to dev.to on its own.

Every platform claim in these skills - reading speed, tag limits, the reaction weighting, comment threading, the analytics endpoints - was taken from the Forem source or a live api/articles response, not from blog posts about dev.to.

First-time setup

Both agents use ~/.claude/devto/ for the voice profile and post log. Create it if needed:

mkdir -p ~/.claude/devto

Windows PowerShell:

New-Item -ItemType Directory -Force "$HOME\.claude\devto" | Out-Null

voice.md - your voice profile. /dev-post will ask for three of your own past posts and write this file if it does not exist. Do not skip it; a draft in the wrong voice is worse than no draft.

log.md - your post history. This is the data /dev-audit and dev-learn.py read. Start it with this header and append one row per post:

# dev.to post log

| date | title | formula_id | tags | cover | canonical | series | published | engagement_rate | comment_ratio | reach_multiple | human_score | audit_rank | first line |
|------|-------|------------|------|-------|-----------|--------|-----------|-----------------|---------------|----------------|-------------|------------|------------|

/dev-post appends the date, title, formula, tags, and metadata. /dev-audit fills in the engagement metrics later. dev-learn.py counts only posts with a valid engagement rate toward the 10-post minimum. Each post is applied once, so rerunning the same log will not increase weights again.

The learning loop

After a post has collected data:

export DEVTO_API_KEY=...   # https://dev.to/settings/extensions

python3 ~/.config/opencode/skills/dev-learn/dev-learn.py fetch --apply   # fill metrics from the API
/dev-audit                                                               # rank by engagement rate, not views
python3 ~/.config/opencode/skills/dev-learn/dev-learn.py audit           # dry-run: what would change
python3 ~/.config/opencode/skills/dev-learn/dev-learn.py audit --apply   # only when you want it
/dev-post                                                                # next draft uses the new weights

For Claude Code and Windows PowerShell paths, see dev-learn/SKILL.md. dev-learn.py never deletes a formula or tag - it moves zero-weight entries to archive. Slop words in dev-human/slop.json stay untouched for manual review.

fetch reads GET /api/articles/me/published, GET /api/analytics/totals?article_id= and GET /api/users/me. It writes only into blank cells, so a number you typed by hand is never overwritten. A post under 50 views keeps its engagement cell blank: at 3 views a single reaction reads as 33%, which would outrank a post with 24 views. It gets refetched once it has traffic. dev.to allows 40 keyed GETs per minute; the script paces itself at 1.6s and backs off on HTTP 429.

Manual install

OpenCode:

git clone https://github.com/naheel0/dev-skills.git
mkdir -p ~/.config/opencode/skills
cp -r dev-skills/skills/dev-* ~/.config/opencode/skills/
cp dev-skills/dev-learn.py ~/.config/opencode/skills/

Claude Code:

git clone https://github.com/naheel0/dev-skills.git
mkdir -p ~/.claude/skills
cp -r dev-skills/skills/dev-* ~/.claude/skills/
cp dev-skills/dev-learn.py ~/.claude/skills/

Windows PowerShell, run from the directory where you want to clone the repo. Set $skills to "$HOME\.claude\skills" for Claude Code:

git clone https://github.com/naheel0/dev-skills.git
$skills = "$HOME\.config\opencode\skills"
New-Item -ItemType Directory -Force $skills | Out-Null
Copy-Item -Recurse .\dev-skills\skills\dev-* "$skills\"
Copy-Item .\dev-skills\dev-learn.py "$skills\"

Requirements

Python 3.9+ for /dev-learn, /dev-human and the /dev-audit handoff. /dev-post, /dev-reply, /dev-plan, /dev-comment, /dev-profile and /dev-repurpose are instructions only.

Tests

python -m unittest -v test_dev_learn test_dev_human

30 tests, run on Python 3.9 and 3.14 in CI. They cover the learning loop's arithmetic and idempotency, the API client (the 429 retry, bodyless errors, and the fetch orchestration: one call per endpoint, filled rows left alone), the view floor that keeps a 3-view post from outranking a real one, and the humanizer's calibration - the five checks are tuned against 38 live dev.to articles so ordinary human writing passes instead of failing.

License

MIT. See LICENSE.

探索相关项目

加载中…