cups-web: Skill for Claude Code

.agents/skills/dev-flow/SKILL.md

dev-flow is a skill for Claude Code, Codex from hanxi/cups-web. It costs 61 tokens per session (3,015 once invoked), scanned A, original, MIT.

A staged development workflow for the cups-web project that collects requirements, preserves existing changes, and waits for confirmation before moving between phases.

In plain words
What is it for?
Use it to process issues or development requests, inspect the project, plan changes, verify work, and request approval at required checkpoints.
Why use it?
It prevents unapproved scope changes and risky actions such as overwriting work, committing, or pushing without explicit approval.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is hanxi/cups-web's own configuration. It tells Claude Code and Codex how to work on cups-web itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cups-web configures →

About the project

CUPS Web is a browser-based print management service that lets users upload documents, choose a printer, and submit print jobs through a CUPS server. Families and small offices use it to share a USB printer over a network, manage users, and track printing history. The catalogue contains instructions for operating the service.

hanxi/cups-web · 1,509 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to hanxi/cups-web. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hanxi/cups-web/master/.agents/skills/dev-flow/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/hanxi/cups-web

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dev-flow

README.md
[![agentmods](https://agentmods.dev/badge/skills/hanxi/cups-web/dev-flow/github.svg)](https://agentmods.dev/skills/hanxi/cups-web/dev-flow)
Your own site
<a href="https://agentmods.dev/skills/hanxi/cups-web/dev-flow"><img src="https://agentmods.dev/badge/skills/hanxi/cups-web/dev-flow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dev-flow

Your own site · 80×15
<a href="https://agentmods.dev/skills/hanxi/cups-web/dev-flow"><img src="https://agentmods.dev/badge/skills/hanxi/cups-web/dev-flow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,015 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.03015
Opus 5.5 $0.00024 $0.01206
Sonnet 5.5 $0.00012 $0.00603
Haiku 4.5 $0.00006 $0.00301

Measured 1mo ago against content hash 69ae7c95b81c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dev-flow scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- 调用或使用示例(curl / 命令行 / UI 路径),字段名以最新代码为准,示例避免复制过时接口形态。
.agents/skills/dev-flow/SKILL.md · 224 lines

How it starts

The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cups-web Dev Flow

按阶段推进 cups-web 的开发任务。维护当前阶段和待确认事项;用户确认后才进入下一阶段。用户提出修正时,留在当前阶段重新整理,不要自行跳过确认点。

触发与范围

  • 用户明确说"使用 dev-flow"、$dev-flow,或请求按项目开发流程处理需求、Bug、优化时使用本 skill。
  • 输入包含 Issue 引用(如 #123 或完整 URL)时,从 Issue 开始;否则按自由描述收集信息。
  • 遵守项目根目录的 AGENTS.md(@AGENTS.md)和 CLAUDE.md。本项目为 cups-web 单仓库,无子模块。

不可跳过的安全规则

  • 开始修改前运行 git status --short,识别并保留用户已有改动;禁止 reset、checkout 或覆盖无关改动。
  • 只在已确认的 scope 内读写文件。发现需要扩大 scope 时,先说明原因并重新确认。
  • 读操作可以自动执行;提交、推送等不可逆操作必须分别获得明确确认。
  • 不能验证时如实报告原因和剩余风险,不要用"应该可以"代替验证。

项目速查

项 值
后端 Go 1.26,gorilla/mux,modernc.org/sqlite(纯 Go,无 CGO),goipp
前端 Vue 3.5 + Vite 7,@nuxt/ui v4 + Tailwind CSS v4,hash 路由
数据库 SQLite,WAL + foreign_keys,迁移在 internal/store/store.go::migrate()
构建 make all(前端 dist → Go 二进制),Docker 五阶段构建
入口 cmd/server/main.go,路由注册在同一文件
部署 AIO 容器(cupsd + cups-web 同容器),docker-compose.yml,host 网络
版本 VERSION 环境变量 → ldflags -X main.Version,回退 git describe

阶段一:收集信息

有 Issue 引用

  1. 从引用提取 owner、repo 和 number(本项目为单仓库,owner/repo 按实际 remote 判定)。

  2. 获取 Issue 正文、评论、标签和状态:

    gh issue view <number> --repo <owner>/<repo> \
      --json title,body,comments,labels,state,url
    
  3. 判断类型:Bug、功能需求或优化。

自由描述

先查 AGENTS.md、docs/ 目录和相关代码建立上下文,再只询问缺失且会影响实现的关键信息。

  • Bug:复现步骤、平台/版本、期望与实际行为、日志或截图、首次出现版本。
  • 需求:使用场景、期望行为、涉及端(前端/后端/容器/Docker)、边界条件、兼容性或性能约束。
  • 描述含糊时,先指出已知事实和未知项;不要在需求尚未清楚时开始改代码。

输出一份简短的结构化摘要:

类型:Bug / 功能 / 优化
问题或目标:
复现步骤或典型用例:
影响范围(前端/后端/数据库/容器/Dockerfile/entrypoint):
已知约束:
待确认事项:

然后暂停并询问:信息是否准确、完整,是否进入方案设计。

阶段二:分析与方案设计

Bug

  • 根据描述、日志和代码调用链定位根因;区分已证实事实、推断和待验证假设。
  • 检查 AGENTS.md 中的踩坑记录(各类 🚫/⚠️ 标记)和 docs/ 下的深度文档。
  • 说明为何现有行为会发生、修复点、回归风险和验证方法。

功能或优化

输出可执行方案,至少包含:

  • 期望行为和不在 scope 内的内容
  • 涉及的文件:后端(cmd/server/*.go、internal/*)、前端(frontend/src/)、数据库(internal/store/)、容器(Dockerfile、entrypoint.sh、scripts/)
  • API 路由和 handler 设计(如新增接口)
  • 数据库迁移(幂等 SQL + addColumnIfMissing,见 AGENTS.md 表结构)
  • 前端状态、路由、组件和 UI 交互
  • 测试策略、兼容性、性能和安全(CSRF、会话、跨源防护、登录限流)
  • 需要用户决定的选项

Read the full file on GitHub · 224 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +22 lines 69ae7c95b81c
  2. 1mo ago First seen · 202 lines · 61 tokens per session scan A 6c2e50051247

Subscribe to this mod's changes

dev-flow is a skill published in the GitHub repository hanxi/cups-web (1,509 stars, last pushed 4d ago), licensed MIT. It adds 61 tokens to every session and 3,015 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.

Related

dev-flow compared with skills from other repositories

dev-flow next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dev-flowhanxi/cups-webSkill1.5k4d agoMITA61Claude Code, Codex
git-opsPrismer-AI/PrismerCloudSkill1.4k15d agoMITA62Claude Code
ess-git-commitsCiscoDevNet/essentialsSkill73d agoApache-2.0A82Claude Code, Codex
ess-summarize-change-logCiscoDevNet/essentialsSkill73d agoApache-2.0A81Claude Code, Codex
gitlab-guidexonovex/platformSkill612d agoMITA109Claude Code
commit-codeabdullahkhawer/devops-skillsSkill101mo agoApache-2.0A18Claude Code, Codex
git-guidexonovex/platformSkill612d agoMITA69Claude Code