Agent skill

Database Architect

by revfactory in revfactory/harness-100

Full pipeline for DB design. An agent skill from revfactory/harness-100.

Apache-2.0Auto-check passedDatabases

Install Database Architect

skills CLI
$ npx skills add revfactory/harness-100 --skill database-architect -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install revfactory/harness-100 database-architect --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .claude/skills && cp -r skills-src/en/19-database-architect/.claude/skills/database-architect .claude/skills/database-architect && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
database-architect
GitHub stars
1.3k
Token cost
~1.8k tokens
SKILL.md length
677 words
Files
1
Skills in repo
464
Repo updated
First seen
Licence
Apache-2.0

At a glance

Full pipeline for DB design. An agent skill from revfactory/harness-100.

  • Works in 3 steps: Preparation (Performed directly by the… → Team Assembly and Execution → Integration and Final Artifacts
  • Any database design task including design a database
  • SKILL.md covers Execution Mode, Agent Composition, Workflow and Mode by Task Scale, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Database Architect is an agent skill from revfactory/harness-100. Full pipeline for DB design. An agent team collaborates to perform data modeling, migration, indexing, query optimization, and security verification. Use this skill for any database design task including 'design a database', 'database modeling', 'table design', 'ERD', 'migration', 'query optimization', 'index design', 'SQL schema', 'PostgreSQL design', 'MySQL design', etc. Also supports optimization and security auditing for existing schemas. Note: actual DB server installation/operation, cloud infrastructure…

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases, covering Database schema design, Query optimization and SQL. It works with SQL, MySQL and PostgreSQL. The licence is Apache-2.0.

When your agent uses it

  • Any database design task including design a database
  • Database modeling
  • Query optimization
  • PostgreSQL design

Example prompts

  • “design a database”
  • “database modeling”
  • “table design”
  • “/database-architect”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Preparation (Performed directly by the orchestrator)
  2. Team Assembly and Execution
  3. Integration and Final Artifacts

What it can do on your machine

Read from SKILL.md and the folder at commit 8e8d35c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Database Architect loads about 1.8k tokens when it runs. Until then it costs about 154 tokens; SKILL.md has 677 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~154
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from revfactory/harness-100 at commit 8e8d35c, republished under its Apache-2.0 licence (© revfactory). 677 words, ~1,766 tokens.

Download SKILL.mdSave it as .claude/skills/database-architect/SKILL.md (or your agent's skills folder).
name
database-architect
description
Full pipeline for DB design. An agent team collaborates to perform data modeling, migration, indexing, query optimization, and security verification. Use this skill for any database design task including 'design a database', 'database modeling', 'table design', 'ERD', 'migration', 'query optimization', 'index design', 'SQL schema', 'PostgreSQL design', 'MySQL design', etc. Also supports optimization and security auditing for existing schemas. Note: actual DB server installation/operation, cloud infrastructure provisioning, and monitoring dashboard setup are outside the scope of this skill.

Database Architect — DB Design Full Pipeline

An agent team collaborates to perform data modeling, migration, indexing, query optimization, and security verification in a single pass.

Execution Mode

Agent Team — 5 members communicate directly via SendMessage and cross-validate each other's work.

Agent Composition

AgentFileRoleType
data-modeler.claude/agents/data-modeler.mdERD, normalization, relationship designgeneral-purpose
migration-manager.claude/agents/migration-manager.mdDDL, version control, rollbackgeneral-purpose
performance-analyst.claude/agents/performance-analyst.mdIndexing, query optimizationgeneral-purpose
security-auditor.claude/agents/security-auditor.mdAccess control, encryption, auditinggeneral-purpose
integration-reviewer.claude/agents/integration-reviewer.mdAlignment, operational readiness verificationgeneral-purpose

Workflow

Phase 1: Preparation (Performed directly by the orchestrator)
  1. Extract from user input:
    • Domain: What service is the DB for
    • DBMS: PostgreSQL / MySQL / MongoDB / DynamoDB
    • Core Entities: Primary data subjects
    • Expected Scale (optional): Row counts, TPS
    • Existing Files (optional): Existing schemas, ERDs, SQL, etc.
  2. Create the _workspace/ directory at the project root
  3. Organize the input and save to _workspace/00_input.md
  4. If existing files are provided, copy them to _workspace/ and skip the corresponding phase
  5. Determine the execution mode based on the scope of the request
Phase 2: Team Assembly and Execution
OrderTaskOwnerDependenciesArtifact
1Data Modelingdata-modelerNone_workspace/01_data_model.md
2Migration Generationmigration-managerTask 1_workspace/02_migration.sql, 02_migration_plan.md
3aPerformance Optimizationperformance-analystTasks 1, 2_workspace/03_performance.md
3bSecurity Verificationsecurity-auditorTasks 1, 2_workspace/04_security.md
4Integration Reviewintegration-reviewerTasks 2, 3a, 3b_workspace/05_review_report.md

Tasks 3a (performance) and 3b (security) are executed in parallel.

Inter-team communication flow:

  • data-modeler completes -> Delivers DDL basis to migration-manager, access patterns to performance-analyst, sensitive data to security-auditor
  • migration-manager completes -> Delivers index DDL to performance-analyst, permission DDL to security-auditor
  • performance-analyst <-> security-auditor: Mutually verify that performance optimizations do not compromise security
  • integration-reviewer cross-validates all artifacts. When 🔴 must-fix issues are found, requests revisions from the relevant agent -> rework -> re-verify (up to 2 rounds)
Phase 3: Integration and Final Artifacts

Organize the final artifacts based on the review report:

  1. Verify all files in _workspace/
  2. Confirm that all 🔴 must-fix items from the review report have been addressed
  3. Report the final summary to the user

Mode by Task Scale

User Request PatternExecution ModeAgents Deployed
"Design a database", "full design"Full PipelineAll 5 agents
"Just draw the ERD", "table design only"Modeling Modedata-modeler + integration-reviewer
"Optimize this schema" (existing SQL)Optimization Modeperformance-analyst + integration-reviewer
"DB security audit" (existing DB)Security Modesecurity-auditor + integration-reviewer
"Review this schema"Review Modeintegration-reviewer only

Leveraging existing files: If the user provides schemas, ERDs, or other existing files, skip the corresponding steps.

Show full SKILL.md (271 more words)Show less

Data Transfer Protocol

StrategyMethodPurpose
File-based_workspace/ directoryStore and share primary artifacts
Message-basedSendMessageReal-time delivery of key information, revision requests
Task-basedTaskCreate/TaskUpdateProgress tracking, dependency management

File naming convention: {order}_{agent}_{artifact}.{extension}

Error Handling

Error TypeStrategy
DBMS not specifiedDefault to PostgreSQL; add compatibility notes for other DBMSs
Insufficient domain informationData modeler starts with common patterns; document assumptions
Agent failureRetry once -> If still fails, proceed without that artifact; note the omission in the review report
🔴 found during reviewRequest revision from the relevant agent -> rework -> re-verify (up to 2 rounds)
Existing schema parsing failureManually analyze and reconstruct the data model

Test Scenarios

Normal Flow

Prompt: "Design a PostgreSQL database for an e-commerce platform. I need user, product, order, payment, and review tables. Expecting 100K orders per day" Expected Result:

  • Model: 5 core tables + junction tables, 3NF normalization, ERD
  • Migration: Sequential DDL + rollback scripts + seed data
  • Performance: Index strategy, key query optimization, partitioning design
  • Security: RBAC, PII encryption, audit logging, backup strategy
  • Review: All items in the alignment matrix verified
Existing File Flow

Prompt: "Optimize the performance of this SQL schema" + SQL file Expected Result:

  • Copy existing schema to _workspace/02_migration.sql
  • Optimization mode: deploy performance-analyst + integration-reviewer
  • Skip data-modeler, migration-manager, security-auditor
Error Flow

Prompt: "Design a database, blog platform" Expected Result:

  • Scale/DBMS unknown -> data-modeler infers PostgreSQL + standard blog entities (Post, User, Comment, Tag)
  • Execute in full pipeline mode
  • Review report notes "design based on inferred requirements"

Agent Extension Skills

Extension skills that enhance each agent's domain expertise:

SkillTarget AgentRole
normalization-patternsdata-modeler1NF-BCNF identification, denormalization strategies, domain-specific ERD templates
query-optimization-catalogperformance-analystIndex strategies, EXPLAIN analysis, N+1 resolution, partitioning

© revfactory, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in en/19-database-architect/.claude/skills/database-architect of revfactory/harness-100.

Open the folder on GitHubat commit 8e8d35c

Compare with similar skills

Database Architect next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Database Architect compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Database Architect this skillrevfactory/harness-1001.3k—~1.8kAutomated safety check: PassApache-2.0
SQL ProJeffallan/claude-skills12k—~1.3kAutomated safety check: PassMIT
Agent SQL Proxiaoyuge886/aigc198—~315Automated safety check: PassMIT
SQL Expertaiskillstore/marketplace430—~3.4kAutomated safety check: PassNone
SQL ToolkitLeoYeAI/openclaw-master-skills2.2k—~3kAutomated safety check: PassMIT
Golang Databaseunxed/f42402 repos~2.9kAutomated safety check: PassMIT

Similar skills

  • SQL Pro

    Jeffallan/claude-skills

    Optimizes SQL queries and designs schemas using CTEs, window functions, covering indexes and EXPLAIN ANALYZE, with notes on dialect differences between major databases.

    12k GitHub stars~1.3k tokensUpdated 4 days ago
    DatabasesAuto-check passed
  • Agent SQL Pro

    xiaoyuge886/aigc

    Expert SQL developer specializing in complex query optimization, database design, and performance tuning across PostgreSQL, MySQL, SQL Server, and Oracle.

    198 GitHub stars~315 tokensUpdated 2 mo ago
    DatabasesAuto-check passed
  • SQL Expert

    aiskillstore/marketplace

    Expert SQL query writing, optimization, and database schema design with support for PostgreSQL, MySQL, SQLite, and SQL Server.

    430 GitHub stars~3.4k tokensUpdated today
    DatabasesAuto-check passed
  • SQL Toolkit

    LeoYeAI/openclaw-master-skills

    Query, design, migrate, and optimize SQL databases. An agent skill from LeoYeAI/openclaw-master-skills.

    2.2k GitHub stars~3k tokensUpdated 2 mo ago
    DatabasesAuto-check passed
  • Comprehensive guide for Go database access — parameterized queries, struct scanning, NULLable columns, transactions, isolation levels, SELECT FOR UPDATE, connection pool, batch processing, context…

    240 GitHub starsUsed in 2 repos~2.9k tokens
    DatabasesAuto-check passed
  • Expert Database

    ReJeCtAll/ExpertTeam-Codex

    数据库优化专家入口。用于 Codex CLI 的 $expert-database 调用. An agent skill from ReJeCtAll/ExpertTeam-Codex.

    113 GitHub stars~692 tokensUpdated 3 mo ago
    DatabasesAuto-check passed

More from revfactory/harness-100

All 464 skills in this repo
  • Anti Bot Analyzer

    revfactory/harness-100

    A skill for analyzing website anti-bot defense mechanisms and developing legitimate evasion strategies.

    1.3k GitHub stars~1.1k tokensUpdated 6 mo ago
    Auto-check passed
  • API Error Design Patterns

    revfactory/harness-100

    Reference for designing how an API reports failures: structured error codes, response shapes, client-friendly messages, an error catalog and retry or fallback advice.

    1.3k GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed
  • API Security Checklist

    revfactory/harness-100

    Walks a backend-dev agent through OWASP API Top 10 checks, authentication and authorization patterns, and defense code during API design.

    1.3k GitHub stars~1.7k tokensUpdated 6 mo ago
    Auto-check passed
  • Arg Parser Generator

    revfactory/harness-100

    Methodology for systematically designing and generating CLI tool argument parser structures.

    1.3k GitHub stars~1.2k tokensUpdated 6 mo ago
    Auto-check passed
  • Audience Segmentation

    revfactory/harness-100

    Audience segmentation skill used by the analyst and curator agents.

    1.3k GitHub stars~1.3k tokensUpdated 6 mo ago
    Auto-check passed
  • Audio Storytelling

    revfactory/harness-100

    Audio storytelling skill used by the podcast scriptwriter and show note editor.

    1.3k GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed

Categories

Questions about Database Architect

What does Database Architect do?

Full pipeline for DB design. An agent skill from revfactory/harness-100. Database Architect is an agent skill from revfactory/harness-100. Full pipeline for DB design.

When should I use Database Architect?

Database Architect fits situations like: any database design task including design a database; database modeling; query optimization; postgreSQL design.

How do I install Database Architect in Claude Code?

Run `npx skills add revfactory/harness-100 --skill database-architect -a claude-code`. Or copy the skill folder (en/19-database-architect/.claude/skills/database-architect in revfactory/harness-100) into .claude/skills/database-architect in your project. Claude Code loads it when a task matches its description.

How do I install Database Architect in Codex?

Run `npx skills add revfactory/harness-100 --skill database-architect -a codex`. Or copy the skill folder (en/19-database-architect/.claude/skills/database-architect in revfactory/harness-100) into .agents/skills/database-architect in your project. Codex loads it when a task matches its description.

Can I use Database Architect in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add revfactory/harness-100 --skill database-architect -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/database-architect, .gemini/skills/database-architect, .github/skills/database-architect and .opencode/skills/database-architect in your project.

What does Database Architect need to run?

SKILL.md names no scripts, command-line tools or credentials: Database Architect is instructions for the agent only.

Does Database Architect access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Database Architect safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Database Architect use?

Database Architect is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Database Architect use?

About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Database Architect?

Skills that share tags, products or a category with Database Architect: SQL Pro (Jeffallan/claude-skills, 12k stars), Agent SQL Pro (xiaoyuge886/aigc, 198 stars), SQL Expert (aiskillstore/marketplace, 430 stars) and SQL Toolkit (LeoYeAI/openclaw-master-skills, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Database Architect?

revfactory (a GitHub user) maintains it in revfactory/harness-100, which has 1,290 GitHub stars. The repository holds 464 skills in this directory. The repository was last updated on March 22, 2026.

Source: revfactory/harness-100 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.