agentleFS
doscodosco/graphjin/.claude/skills/add-graphjin-database/SKILL.md

add-graphjin-database

Skill3.2k starsChanged 3 months agoApache-2.0View on GitHub

Use when adding a new GraphJin database, warehouse, or CQL/NoSQL backend; building a simulator because no live service is available; wiring a dialect, discovery, tests, scripts, README/CONFIG/FEATURES, or website database support surfaces.

Trending

Quiet since October.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 45 mentionsSep 2026: 2 mentionsOct 2026: 1 mentionNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the dosco/graphjin repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about dosco/graphjin

The biggest 5 of 52 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 52

Talked about on GitHub and Hacker News (52 times).

On GitHub · 48

43 more on GitHub

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 11 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill to add a database end to end without leaving half-public support behind.

    line 8
  2. Distinctive:

    Read the database's official SQL, DDL, type, catalog, and limitations docs before coding.

    line 13
  3. Very specific:

    Add tests/hostedemu/<db> and tests/<db>emu around hostedemu.NewConnector.

    line 18
  4. Very specific:

    Add tests/<db>.sql using database-native DDL, types, constraints, and metadata features.

    line 19
  5. Distinctive:

    Keep parser/translator code owned by the target database.

    line 20
  6. Distinctive:

    Add parser, type mapping, metadata, discovery, wrapper, default-fixture, and large-catalog tests.

    line 22
  7. Distinctive:

    Use the simulator to build public support.

    line 24
  8. Distinctive:

    Add a DB-owned dialect. Inherit behavior only after target-specific tests prove it.

    line 26
  9. Distinctive:

    Add discovery using the docs-recommended catalog path first, with fallbacks only where needed.

    line 27
  10. Very specific:

    Keep GraphJin's collision-free managed artifact SQLite database runtime-only.

    line 29
  11. Distinctive:

    Update public surfaces only after the runtime is wired.

    line 31
  12. Distinctive:

    Update README, CONFIG, FEATURES, website database logos/frontpage copy, website database matrix, and test-parallel scripts.

    line 32
  13. Very specific:

    If the database uses graphjin serve new --db-url, update the URL parser and the rendered cmd/tmpl/prod.yml and cmd/tmpl/agentic.yml sources.

    line 33
  14. Very specific:

    Do not add artifact, watch, agent, stateful-MCP, or primitive-tool enablement to new dev.yml / agentic.yml examples.

    line 36
  15. Distinctive:

    Verify and leave evidence.

    line 38
  16. Very specific:

    Run simulator tests, dialect/introspection tests, the new scripts/test-<db>.sh, and affected shared suites.

    line 39
  17. Distinctive:

    If shared compiler or introspection code changed, run existing dialect scripts likely to be affected.

    line 40
  18. Distinctive:

    Before finalizing, recheck docs/website claims against the support level that actually passed.

    line 41
  19. Very specific:

    Read references/checklist.md for the detailed implementation checklist and Redshift-specific notes.

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Add GraphJin Database

Use this skill to add a database end to end without leaving half-public support behind. GraphJin is a compiler, not a resolver stack: push behavior into dialect, discovery, schema metadata, and tests.

Workflow

  1. Ground in docs and repo truth.
    • Read the database's official SQL, DDL, type, catalog, and limitations docs before coding.
    • Inspect existing GraphJin seams: config validation, dialect factory, introspection, tests/dbint_test.go, hosted emulators, scripts, README, CONFIG, FEATURES, and website components.
    • Decide and state the public support level: experimental queries, mutations, subscriptions, full support, or simulator-only.
  2. Build a simulator first when live service access is unavailable or slow.
    • Add tests/hostedemu/<db> and tests/<db>emu around hostedemu.NewConnector.
    • Add tests/<db>.sql using database-native DDL, types, constraints, and metadata features.
    • Keep parser/translator code owned by the target database. Reuse hosted emulator patterns, not another database's grammar, unless docs prove the syntax is identical.
    • Translate setup and discovery into DuckDB, but expose the database's real discovery surfaces.
    • Add parser, type mapping, metadata, discovery, wrapper, default-fixture, and large-catalog tests.
  3. Use the simulator to build public support.
    • Register the DB type in core/config.go, the psql dialect factory, subscription dialect lookup, introspection switches, and schema-DDL/diff code if public DDL support is claimed.
    • Add a DB-owned dialect. Inherit behavior only after target-specific tests prove it.
    • Add discovery using the docs-recommended catalog path first, with fallbacks only where needed.
    • Wire tests/dbint_test.go, focused skip helpers for unsupported features, and scripts/test-<db>.sh.
    • Keep GraphJin's collision-free managed artifact SQLite database runtime-only. Its identifier is allocated at startup and must never become an application source, primary database candidate, catalog source, or security-report database.
  4. Update public surfaces only after the runtime is wired.
    • Update README, CONFIG, FEATURES, website database logos/frontpage copy, website database matrix, and test-parallel scripts.
    • If the database uses graphjin serve new --db-url, update the URL parser and the rendered cmd/tmpl/prod.yml and cmd/tmpl/agentic.yml sources. Verify a real generated app loads without test-only placeholder replacement.
    • Make feature claims match tests. Use "experimental" and "query/discovery only" when writes, subscriptions, GIS, full-text, or migrations are not verified.
    • Preserve unrelated dirty worktree edits. Patch on top; never revert user changes.
    • Do not add artifact, watch, agent, stateful-MCP, or primitive-tool enablement to new dev.yml / agentic.yml examples; parsed mode defaults already provide them. Configure an artifact source only when documenting a shared clustered store.
  5. Verify and leave evidence.
    • Run simulator tests, dialect/introspection tests, the new scripts/test-<db>.sh, and affected shared suites.
    • If shared compiler or introspection code changed, run existing dialect scripts likely to be affected.
    • Before finalizing, recheck docs/website claims against the support level that actually passed.

References

  • Read references/checklist.md for the detailed implementation checklist and Redshift-specific notes.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.