yq-code-gen

yq-code-gen is a skill for Claude Code, Codex from rockyflux/yq-workflow. It costs 34 tokens per session (783 once invoked), scanned A, original, MIT.

A guide for turning clear requirements or designs into working production code. It covers implementation, validation, error handling, testing needs, and fit with the existing codebase.

In plain words
What is it for?
Use it to deliver features, fill implementation gaps, scaffold modules, or turn an approved design or interface into maintainable code.
Why use it?
It gives coding work a defined scope and helps prevent implementations that handle only the happy path or ignore existing project patterns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to deliver features, fill implementation gaps, scaffold modules, or turn an approved design or interface into maintainable code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rockyflux/yq-workflow/yq-code-gen
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rockyflux/yq-workflow --skill yq-code-gen
Clone the repo
git clone --depth 1 https://github.com/rockyflux/yq-workflow

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 yq-code-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/rockyflux/yq-workflow/yq-code-gen/github.svg)](https://agentmods.dev/skills/rockyflux/yq-workflow/yq-code-gen)
Your own site
<a href="https://agentmods.dev/skills/rockyflux/yq-workflow/yq-code-gen"><img src="https://agentmods.dev/badge/skills/rockyflux/yq-workflow/yq-code-gen/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 yq-code-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/rockyflux/yq-workflow/yq-code-gen"><img src="https://agentmods.dev/badge/skills/rockyflux/yq-workflow/yq-code-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 783 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00034 $0.00783
Opus 5 $0.00017 $0.00392
Sonnet 5 $0.00007 $0.00157
Haiku 4.5 $0.00003 $0.00078

Measured 7d ago against content hash ffe9deff1fea, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

yq-code-gen scanned grade A with 0 findings 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 7d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

templates/yq-skills/yq-code-gen/SKILL.md · 95 lines

What it actually says

YQ Code Generation

Overview

把已经明确的需求、接口、数据和边界落成可运行、可验证、可维护的实现。

Core principle: 先对齐边界和验证方式,再写最贴近现有代码库的实现。

When to Use

  • 用户要实现功能、补模块、落地设计或补齐骨架
  • 上游需求和方案已经基本稳定
  • 需要在现有代码库模式内新增行为
  • 重点是交付代码,不是讨论方案

Route Elsewhere

  • 范围或验收标准还不清楚:转 yq-req-analysis
  • 方案和边界还没定:转 yq-system-designyq-api-designyq-db-design
  • 重点是重构旧代码:转 yq-code-refactor
  • 重点是定位问题:转 yq-debug

Process

  1. 汇总上游约束、假设和禁止事项。
  2. 对照现有代码库找到最接近的实现模式。
  3. 先立边界和接口,再填业务逻辑、校验和错误处理。
  4. 为测试、日志和后续评审保留稳定观察点。
  5. 标明未覆盖风险和后续补测点。

Output

# Code Generation Result
## Scope Implemented
## Files or Modules Added / Changed
## Key Decisions
## Validation and Error Handling
## Follow-up Tests Needed
## Recommended Next Step
  • 上游通常来自 yq-req-analysisyq-system-designyq-api-designyq-db-design
  • 下游通常接 yq-test-genyq-code-reviewyq-security-scan
  • 编码前后的验证纪律可参考 superpowers:test-driven-development
  • 默认交给 yq-test-gen,先把关键行为和回归风险锁住
  • 如果需要先做人审视角的风险收敛,可接 yq-code-review
  • 如果改动涉及认证、授权、敏感数据或外部输入,可并行补 yq-security-scan

Common Mistakes

  • 直接开写,没有先收口边界
  • 只补 happy path,没有错误语义和状态校验
  • 生成脱离仓库风格的孤岛式代码
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. 7d ago First seen · 95 lines · 34 tokens per session scan A ffe9deff1fea

Subscribe to this mod's changes

yq-code-gen is a skill published in the GitHub repository rockyflux/yq-workflow (2 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 783 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.