Agent skill

Database Core

by macro-inc in macro-inc/macro

A skill your agent uses when building a feature on reusable database storage or UI, such as CRM, or deciding whether it needs a Macro database entity.

AGPL-3.0Auto-check passedSales & Support

Install Database Core

skills CLI
$ npx skills add macro-inc/macro --skill database-core -a claude-code

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

GitHub CLI
$ gh skill install macro-inc/macro database-core --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/macro-inc/macro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/database-core .claude/skills/database-core && 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-core
GitHub stars
4.6k
Token cost
~645 tokens
SKILL.md length
290 words
Files
2
Skills in repo
19
Repo updated
First seen
Licence
AGPL-3.0

At a glance

A skill your agent uses when building a feature on reusable database storage or UI, such as CRM, or deciding whether it needs a Macro database entity.

  • Building a feature on reusable database storage
  • SKILL.md covers Choose the entry point, Keep product metadata on the… and Reuse the records UI
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Deciding whether it needs a Macro database entity

What it does

Database Core is an agent skill from macro-inc/macro. Use when building a feature on reusable database storage or UI, such as CRM, or deciding whether it needs a Macro database entity. Covers storage and UI entry points, ownership, authorization, and the entities naming convention.

Its SKILL.md is about 650 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Sales & Support. The repository describes itself as: Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory. The licence is AGPL-3.0.

When your agent uses it

  • Building a feature on reusable database storage
  • Deciding whether it needs a Macro database entity

Example prompts

  • “/database-core”

What it can do on your machine

Read from SKILL.md and the folder at commit 39f3c91. 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 Core loads about 645 tokens when it runs. Until then it costs about 61 tokens; SKILL.md has 290 words of instructions outside code blocks.

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

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 macro-inc/macro at commit 39f3c91, republished under its AGPL-3.0 licence (© macro-inc). 290 words, ~645 tokens.

Download SKILL.mdSave it as .claude/skills/database-core/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
database-core
description
Use when building a feature on reusable database storage or UI, such as CRM, or deciding whether it needs a Macro database entity. Covers storage and UI entry points, ownership, authorization, and the _entities naming convention.

Database core

The database engine is a reusable resource. A feature can use its tables, columns, cells, versions, and journal with its own ownership, permissions, and lifecycle.

Choose the entry point

  • Building a feature such as CRM: reference databases.id from that feature's domain model. Use the DatabaseStorage port to create_storage, apply_storage_writes, and delete_storage.
  • Working on the Macro database app: use DatabasesService. Its repository creates the app entity and owner grant together; CellStore enforces the entity's lifecycle during writes.

A new consumer authorizes access to its own resources, validates writes, and controls discovery and cleanup. DatabaseStorage expects calls from a trusted domain service; the composition root supplies its adapter. Creating core storage requires no row in database_entities or database app grants and does not expose it in Soup.

Keep product metadata on the entity

databases holds the core resource identity. An optional database_entities row holds the Macro app's name, owner (user_id), lifecycle timestamps, and trash state. Its database_id is both its primary key and a foreign key to the resource.

Use this pattern for new entities: a plural <kind>_entities table owns product identity and lifecycle and references any reusable resource it uses. The naming convention starts with databases; existing unrelated entity tables keep their names. Rust type names stay singular.

Reuse the records UI

Use DatabaseRecordsView with a host-provided DatabaseRowsSource, query/layout state, and action callbacks. It needs no Macro database entity, saved-view metadata, or block context. Omit schema actions when a feature allows record editing with a fixed schema. The Macro app's DatabaseGrid supplies its API, Soup, and saved-view adapters; other domains supply their own authorized reads, writes, and change notifications.

Read the storage boundary and domain ports before wiring a consumer. Follow the database guide for schema and migration work.

© macro-inc, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .agents/skills/database-core of macro-inc/macro.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 39f3c91

Compare with similar skills

Database Core 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 Core compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Database Core this skillmacro-inc/macro4.6k—~645Automated safety check: PassAGPL-3.0
Cold Outbound Optimizerericosiu/ai-marketing-skills3.6k1 repos~1.7kAutomated safety check: PassMIT
Doc Coauthoringaws-samples/sample-strands-agent-with-agentcore19439 repos~3.2kAutomated safety check: PassMIT
Amazon Buy Box Monitorbrowser-act/skills6.1k2 repos~1.6kAutomated safety check: PassMIT
Review Analysisliangdabiao/amazon-sorftime-research-MCP-skill9401 repos~2.5kAutomated safety check: PassNone
Deskcomm Extensaomelgarafael/DeskcommCRM4.5k—~2.7kAutomated safety check: PassMIT

Similar skills

  • Cold Outbound Optimizer

    ericosiu/ai-marketing-skills

    Design, analyze, and optimize cold outbound email campaigns for Instantly.

    3.6k GitHub starsUsed in 1 repo~1.7k tokens
    Sales & SupportAuto-check passed
  • Doc Coauthoring

    aws-samples/sample-strands-agent-with-agentcore

    Official

    Guide users through a structured workflow for co-authoring documentation.

    194 GitHub starsUsed in 39 repos~3.2k tokens
    Sales & SupportAuto-check passed
  • Amazon Buy Box Monitor

    browser-act/skills

    Pulls Amazon product details, competing seller prices and seller ratings for a given ASIN through the BrowserAct API, without browser automation.

    6.1k GitHub starsUsed in 2 repos~1.6k tokens
    Sales & SupportAuto-check passed
  • Review Analysis

    liangdabiao/amazon-sorftime-research-MCP-skill

    对亚马逊商品评论进行深度分析,自动识别产品痛点、分析退货原因,生成改进建议和客服回复模板。Invoke when user uses /review-analysis command with a product ASIN.

    940 GitHub starsUsed in 1 repo~2.5k tokens
    Sales & SupportAuto-check passed
  • Deskcomm Extensao

    melgarafael/DeskcommCRM

    Guia para criar uma extensão do DeskcommCRM — o pacote declarativo — em vez de abrir um PR no núcleo.

    4.5k GitHub stars~2.7k tokensUpdated yesterday
    Sales & SupportAuto-check passed
  • Tourmind Booking

    tourmind-com/Tourmind-Booking-Skills

    MUST USE for any hotel or accommodation intent in any language, including hotel search, hotel recommendations, nearby accommodation, hostels, guesthouses, resorts, where-to-stay questions, room…

    1.6k GitHub stars~13k tokensUpdated 14 days ago
    Sales & SupportAuto-check passed

More from macro-inc/macro

All 19 skills in this repo
  • Mintlify API

    macro-inc/macro

    Interact with the Mintlify REST API to manage deployments, trigger builds, and query documentation site metadata programmatically.

    4.6k GitHub starsUsed in 2 repos~333 tokens
    Auto-check passed
  • Add Tour

    macro-inc/macro

    Add or change an in-app feature tour (a view's guided flyover) in the web app.

    4.6k GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Define Feature Flag

    macro-inc/macro

    Define a frontend feature flag with defineFlag and wire its readers.

    4.6k GitHub stars~780 tokensUpdated yesterday
    Auto-check passed
  • Run App

    macro-inc/macro

    Run the Macro app on Cursor Cloud and pick up edits. An agent skill from macro-inc/macro.

    4.6k GitHub stars~712 tokensUpdated yesterday
    Auto-check passed
  • Add SDK Endpoint

    macro-inc/macro

    Wrap a new backend endpoint in the TypeScript SDK (packages/sdk), or record it as skipped.

    4.6k GitHub stars~1k tokensUpdated yesterday
    Auto-check: notes
  • Enforce hexagonal architecture in the Rust backend. An agent skill from macro-inc/macro.

    4.6k GitHub stars~3k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Database Core

What does Database Core do?

A skill your agent uses when building a feature on reusable database storage or UI, such as CRM, or deciding whether it needs a Macro database entity. Database Core is an agent skill from macro-inc/macro. Use when building a feature on reusable database storage or UI, such as CRM, or deciding whether it needs a Macro database entity.

When should I use Database Core?

Database Core fits situations like: building a feature on reusable database storage; deciding whether it needs a Macro database entity.

How do I install Database Core in Claude Code?

Run `npx skills add macro-inc/macro --skill database-core -a claude-code`. Or copy the skill folder (.agents/skills/database-core in macro-inc/macro) into .claude/skills/database-core in your project. Claude Code loads it when a task matches its description.

How do I install Database Core in Codex?

Run `npx skills add macro-inc/macro --skill database-core -a codex`. Or copy the skill folder (.agents/skills/database-core in macro-inc/macro) into .agents/skills/database-core in your project. Codex loads it when a task matches its description.

Can I use Database Core 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 macro-inc/macro --skill database-core -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-core, .gemini/skills/database-core, .github/skills/database-core and .opencode/skills/database-core in your project.

What does Database Core need to run?

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

Does Database Core 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 Core 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 Core use?

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

How many tokens does Database Core use?

About 645 tokens (SKILL.md is roughly 2.6k 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 Core?

Skills that share tags, products or a category with Database Core: Cold Outbound Optimizer (ericosiu/ai-marketing-skills, 3.6k stars), Doc Coauthoring (aws-samples/sample-strands-agent-with-agentcore, 194 stars), Amazon Buy Box Monitor (browser-act/skills, 6.1k stars) and Review Analysis (liangdabiao/amazon-sorftime-research-MCP-skill, 940 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Database Core?

macro-inc (a GitHub organization) maintains it in macro-inc/macro, which has 4,578 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 7, 2026.

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