Skip to content
Agent Orchestration
Skill

/db_rows

Use as the database example step — emit query rows plus a stated total (`rows@1`) that a recompute_gate re-derives and compares. Stand-in for a real SQL query (psql); the gate is what catches a total that does not add up. Single tool.

From plugin
agentic-sop-to-work
21115 skills

Claude Code

$ npx -y skills add s0912758806p/agentic-sop-to-work --skill db_rows --agent claude-code

SKILL.md

db_rows.SKILL.md
name: db_rows
description: Use as the database example step — emit query rows plus a stated total (`rows@1`) that a recompute_gate re-derives and compares. Stand-in for a real SQL query (psql); the gate is what catches a total that does not add up. Single tool.

Example skill — db_rows(資料庫範例:總數要能重算)

`workflow/examples/db.json` 的唯一一步。stand-in 輸出固定的查詢列與它們的加總; 接上真的查詢時換掉 `run()`,**保留 `recompute_gate`**——報出來的總數由程式重算核對,不信任上游自報。

綁定的單一工具

  • `python3`(標準庫)。實務上換成 `psql` 或 DB driver,一步仍只綁一個工具。

依賴(完整宣告;缺項明確報錯)

  • `python` >= 3.8

參數化(無硬編碼)

  • 輸入:`--in <任意輸入>`(stand-in 不讀;真的實作讀查詢參數)
  • 輸出:`--out <rows artifact.json>`

介面

  • **輸出 artifact**:`{"schema":"rows@1","produced_by":"db_rows","data":{"rows":[10,20,30],"total":60},"trace":[]}`
  • 閘門:`recompute_gate`,`args = {"op":"sum","over":"rows","equals":"total"}`。

執行

`python3 skills/db_rows/tool.py --in <任意輸入> --out <out/db.json>`

@s0912758806p
Ships withagentic-sop-to-work

Turn a process you do by hand into steps a program runs — and never let the AI make up facts, loop forever, or have the final say.

Stars on GitHub

Momentum

stars in total
211
Star history of s0912758806p/agentic-sop-to-work on GitHub, a chart by star-history.com

Other skills on agentic-sop-to-work.

More skills from other plugins.

Questions about db_rows.

Which coding agents can use db_rows?
db_rows installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.