architect/data-api-design

architect/data-api-design is a skill for Claude Code from echoVic/boss-skill. It costs 26 tokens per session (3,403 once invoked), scanned A, original, MIT.

A guide to designing data models and application programming interfaces (APIs), which are the rules software uses to exchange data.

In plain words
What is it for?
Use it to identify entities, define one-to-one, one-to-many, and many-to-many relationships, draw entity-relationship diagrams, and specify APIs.
Why use it?
It helps turn product requirements into clear database tables, relationships, constraints, and request and response formats.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: agent in frontmatter.

Part of the boss plugin — 39 skills, 10 commands, 10 agents, 8 hooks shipped together

Good fit Use it to identify entities, define one-to-one, one-to-many, and many-to-many relationships, draw entity-relationship diagrams, and specify APIs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/echovic/boss-skill/data-api-design
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 echoVic/boss-skill --skill data-api-design
Clone the repo
git clone --depth 1 https://github.com/echoVic/boss-skill

Made for: Claude Code.

Or install boss, the plugin that ships this one along with the rest of its 39 skills, 10 commands, 10 agents, 8 hooks.

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 architect/data-api-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/echovic/boss-skill/data-api-design/github.svg)](https://agentmods.dev/skills/echovic/boss-skill/data-api-design)
Your own site
<a href="https://agentmods.dev/skills/echovic/boss-skill/data-api-design"><img src="https://agentmods.dev/badge/skills/echovic/boss-skill/data-api-design/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 architect/data-api-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/echovic/boss-skill/data-api-design"><img src="https://agentmods.dev/badge/skills/echovic/boss-skill/data-api-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,403 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 185
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
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.00026 $0.03403
Opus 5.5 $0.00010 $0.01361
Sonnet 5.5 $0.00005 $0.00681
Haiku 4.5 $0.00003 $0.00340

Measured 16d ago against content hash f82b44a7c6b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

architect/data-api-design 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 16d 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.

skill/skills/architect/data-api-design/SKILL.md · 408 lines

How it starts

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

数据模型与API设计方法论

适用场景

在系统架构确定后,需要设计:

  • 数据库表结构和关系
  • 数据字典和约束
  • API接口规范
  • 请求/响应格式

数据模型设计

1. 实体识别

从PRD中识别核心实体(名词):

示例:

  • 用户系统:User(用户)、Role(角色)、Permission(权限)
  • 博客系统:User(用户)、Post(文章)、Comment(评论)、Tag(标签)
  • 电商系统:User(用户)、Product(商品)、Order(订单)、OrderItem(订单项)

2. 关系识别

确定实体之间的关系:

关系类型 说明 示例
一对一 (1:1) 一个A对应一个B User - Profile
一对多 (1:N) 一个A对应多个B User - Post
多对多 (M:N) 多个A对应多个B Post - Tag

关系表示:

  • ||--o{: 一对多
  • ||--||: 一对一
  • }o--o{: 多对多

3. 实体关系图 (ERD)

使用 Mermaid 绘制 ERD:

erDiagram
    User ||--o{ Post : creates
    User ||--o{ Comment : writes
    Post ||--o{ Comment : has
    Post }o--o{ Tag : has

    User {
        uuid id PK
        string email UK
        string name
        string passwordHash
        enum role
        datetime createdAt
        datetime updatedAt
    }

    Post {
        uuid id PK
        uuid authorId FK
        string title
        text content
        enum status
        datetime publishedAt
        datetime createdAt
        datetime updatedAt
    }

    Comment {
        uuid id PK
        uuid postId FK
        uuid userId FK
        text content
        datetime createdAt
    }

    Tag {
        uuid id PK
        string name UK
    }

4. 数据字典

为每个表定义详细的字段信息:

User 表
字段 类型 约束 默认值 说明
id UUID PK uuid_generate_v4() 主键
email VARCHAR(255) UNIQUE, NOT NULL - 邮箱,用于登录
name VARCHAR(100) NOT NULL - 用户名
passwordHash VARCHAR(255) NOT NULL - 密码哈希(bcrypt)
role ENUM('user', 'admin') NOT NULL 'user' 用户角色
createdAt TIMESTAMP NOT NULL NOW() 创建时间
updatedAt TIMESTAMP NOT NULL NOW() 更新时间

Read the full file on GitHub · 408 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. 16d ago Changed · -3 lines f82b44a7c6b7
  2. 20d ago Changed · +16 lines 82c08945455a
  3. 1mo ago Changed · -1 lines 88a40a1ff1d0
  4. 2mo ago Changed · +2 lines 96c0ce7e6646
  5. 3mo ago First seen · 394 lines · 26 tokens per session scan A f223a3c6b772

Subscribe to this mod's changes

architect/data-api-design is a skill published in the GitHub repository echoVic/boss-skill (631 stars, last pushed 6d ago), licensed MIT. It adds 26 tokens to every session and 3,403 once invoked, about $0.0001 per session on Opus 5.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-08-30.

Related

architect/data-api-design compared with skills from other repositories

architect/data-api-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
architect/data-api-designechoVic/boss-skillSkill6316d agoMITA26Claude Code
cqrs-implementationwshobson/agentsSkill43k3d agoMITA35Claude Code
event-store-designwshobson/agentsSkill43k3d agoMITA33Claude Code
clawhub-convexopenclaw/clawhubSkill9.6kyesterdayMITA62Codex
convexopenclaw/clawhubSkill9.6kyesterdayMITA202Claude Code, Codex
convex-expertopenclaw/clawhubSkill9.6kyesterdayMITA78Claude Code, Codex
convex-designopenclaw/clawhubSkill9.6kyesterdayMITA59Claude Code, Codex