api-design
Skill9.3k starsChanged 5 days agoApache-2.0View on GitHub
Design HTTP operations of Databasus in backend/api/openapi.yaml and backend/api/agent.yaml. Covers paths and methods, fields, enums and secrets, polymorphic settings, the Problem error format and status codes, access marks, long operations, cursor pagination, downloads and compatibility, and how the backend implements an operation and the frontend calls it. Load when a plan or a change adds or changes an HTTP operation or edits either contract.
191 other projects use a version of this.
Trending
Quiet since July.thin dataabout the whole repository
Most recently taken up by
- Markssuave/Markssuave-Agent-skillstheir own version, first seen Nov 8, 2026
- Rojios/everything-claude-codetheir own version, first seen Nov 8, 2026
- ishandutta2007/Awesome-Claude-Skillstheir own version, first seen Nov 8, 2026
- databasus/databasusword for word, first seen Nov 8, 2026
- lhbsaa/apex-unifiedtheir own version, first seen Nov 8, 2026
- ahmadvahidi/skill-atlastheir own version, first seen Nov 8, 2026
Who's talking about RostislavDugin/postgresus
- @its-me-rhk.bsky.social“🗄️ Postgresus — Alat open-source untuk monitoring & backup database PostgreSQL dengan antarmuka web. ⚡ …”Bluesky · Oct 30, 2025 · 3 likes
- Dokploy/templates“Postgresus template seems outdated – project renamed to Databasus”GitHub · Jan 19, 2026 · 1 reactions
- truenas/apps“[App Request]: Postgresus / Databasus”GitHub · Dec 19, 2025 · 1 reactions
- @mariuskimmina.com“"Postgresus" is just peak project naming (and it also seems really awesome) github.com/RostislavDug...”Bluesky · Dec 6, 2025 · 1 likes
- @harungecit.dev“PostgreSQL kullanıyorsan ama yedekleme & izleme seni yoruyorsa: 💡 Postgresus tam sana göre! 🕒 Otomatik …”Bluesky · Oct 30, 2025 · 1 likes
The biggest 5 of 10 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 10
Talked about on GitHub and Bluesky (10 times).
On GitHub · 7
- Jan 19, 2026Postgresus template seems outdated – project renamed to Databasus — Dokploy/templates1 reaction
- Dec 19, 2025[App Request]: Postgresus / Databasus — truenas/apps1 reaction
- Jul 14, 2026fix: add Databasus template (Postgresus was renamed upstream) — Dokploy/templates0 reactions · 1 comment
- Dec 11, 2025Redirect to https://postgresus.com/storages/google-oauth instead of my hosted Postgresus domain — databasus/databasus0 reactions · 2 comments
- Dec 7, 2025Email Notifier Password can't be empty when creating — databasus/databasus0 reactions · 2 comments
2 more on GitHub
- Nov 17, 2025Databasus — community-scripts/DevScripts0 reactions · 6 comments
- Sep 14, 2025Update PostgreSQL badge in README — pgmq/pgmq0 reactions
On Bluesky · 3
- Oct 30, 2025🗄️ Postgresus — Alat open-source untuk monitoring & backup database PostgreSQL dengan antarmuka web. ⚡ Fitur utama: jadwal backup,… — @its-me-rhk.bsky.social3 likes and reposts
- Dec 6, 2025"Postgresus" is just peak project naming (and it also seems really awesome) github.com/RostislavDug... — @mariuskimmina.com1 likes and repost
- Oct 30, 2025PostgreSQL kullanıyorsan ama yedekleme & izleme seni yoruyorsa: 💡 Postgresus tam sana göre! 🕒 Otomatik yedekler ☁️ S3, Drive, NAS desteği… — @harungecit.dev1 likes and repost
Used with
Projects with it also use db-design, everything-claude-code and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
yuexueyuSkilldb-design
数据库工程师技能 - Schema设计、索引优化、并发安全、数据库审计。当你涉及数据库表/字段/索引/SQL/迁移/MCP数据库操作、建表改表、写查询时必须使用此技能。即使用户只是说"加个字段"或"查下数据",也应触发。
Also in 4 projects that use this
InfopibeSkilleverything-claude-code
Also in 9 projects that use this
mryeastcodeSkilleverything-claude-code-conventions
Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.
Also in 8 projects that use this
tpavanipradeepSkillnextjs-turbopack
Next.js 16+ and Turbopack — incremental bundling, FS caching, dev speed, and when to use Turbopack vs webpack.
Also in 15 projects that use this
Indium-AI-LabsSkilldata-pipeline-design
Design batch or incremental ETL and ELT pipelines and warehouse models: grain, partitioning, idempotent loads, late-arriving data, data quality tests, PII controls, and cost monitoring, before building them. Use when adding or changing a dbt model, warehouse table, scheduled transformation, or ingestion job. Not for transactional schema design (use the database-design skill) or event-sourced stores (use the event-sourcing-architecture skill).
Also in 3 projects that use this
thejordanleopoldSkillthird-party-integration
Use when integrating with external APIs, payment processors (Stripe), webhooks, or third-party services. Use when implementing API clients with authentication and rate limiting, handling webhooks with signature verification and idempotency, writing contract tests for external services, or isolating third-party dependencies behind adapters. Triggers: \"Stripe\", \"payment integration\", \"webhook\", \"third-party API\", \"external service\", \"API client\", \"integrate with\", \"signature verification\", \"idempotency key\".
Also in 3 projects that use this
Other versions191 projects use a version of this.
Word for word · 1
- databasus/databasus★ 9.3k100% same
Edited · 0
None found.
Wrote their own version · 190
- affaan-m/ECC★ 246ksame name
- authgear/authgear-server★ 2.1ksame name
- xu-xiang/everything-claude-code-zh★ 1.9ksame name
- Aaronontheweb/dotnet-skills★ 1.2ksame name
- epam/ai-dial-chat★ 501same name
- loulanyue/awesome-claude-notes★ 272same name
- KbWen/agentic-os★ 229same name
- DevelopersGlobal/ai-agent-skills★ 216same name
- kid-sid/claude-spellbook★ 190same name
- margelo/react-native-skills★ 172same name
180 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- backend/AGENTS.mdAGENTS.md
- frontend/AGENTS.mdAGENTS.md
- website/AGENTS.mdAGENTS.md
- backend/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- frontend/CLAUDE.mdCLAUDE.md
- website/CLAUDE.mdCLAUDE.md
- client-tool-bundlesSkill
- feature-sliced-designSkill
- frontend-designSkill
- frontend-localizationSkill
- git-commitsSkill
- how-to-communicateSkill
- mantine-comboboxSkill
- mantine-custom-componentsSkill
- mantine-formSkill
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
- openspec-update-changeSkill
- run-appSkill
- testingSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 164 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Run mise run backend:lint.
- Very specific: line 20
Every operation has an operationId and exactly one tag.
- Very specific: line 37
Every operation has a default response with the Problem schema (RFC 9457) and a code field.
- Distinctive: line 73
Follow the compatibility policy in architecture.md, HTTP API, including frozen agent-discovery paths and explicit approval of request-shape …
- Very specific: line 89
Every operation has its tag, its operationId, an access mark where needed, the default error response and the statuses its access check can …
“Common” is measured: kept by at least 6 in 10 of the 164 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Designing the HTTP API
Who calls the API
openapi.yamlserves the SPA and users' own scripts. The SPA has no private endpoints and uses the same operations a script would.agent.yamlserves the verification agent. The SPA does not use it, andopenapi.yamlholds no agent operations.
Contract first
- Edit the contract.
- Run
mise run generate-api. - Implement the generated strict server interface in the module's
internal/httpapi, and call the operation from the frontend through the generated types. A module servingagent.yamlimplements its generated strict server ininternal/agentapi. Thesystemtag is the one exception: it is not a module, andinternal/app/systemhttpapiserves it. - Run
mise run backend:lint.vacuumchecks the contract against the rules below, and the lint fails when the generated code is out of date.
Every operation has an operationId and exactly one tag. The tag is the name of the module that implements the operation. Generated files are never edited by hand.
Paths and methods
- Paths are relative to
/api/v1and made of lowercase plural nouns, with words joined by hyphens:/backup-configs/{backupConfigId}. A path parameter names its entity:{storageId}, never{id}. GETreads,POSTon a collection creates,PUTreplaces the editable fields of a resource, andDELETEdeletes. An action that does not change fields is aPOSTon a sub-path named by a verb:POST /backups/{backupId}/cancel,POST /storages/{storageId}/test.- A resource that belongs to a workspace is listed with a filter, such as
GET /storages?workspaceId=.... It is not nested under the workspace path.
Fields
- Names are
camelCase. Enum values areUPPER_SNAKE_CASE, except the error codes ofProblemCode, which are lowersnake_caseas the table in Errors shows, and the names a database engine itself uses, such as server versions and libpq SSL modes, which a schema markedx-engine-values: truekeeps as the engine writes them. IDs are strings withformat: uuid; an identifier that another system issues keeps that system's type, such as the integer Telegram topicthreadId. Times are RFC 3339 in UTC withformat: date-time. Sizes and durations carry the unit in the name:sizeBytes,intervalSeconds. - A field that may be missing is optional. A field that is present with an empty value is
nullable. One meaning never uses both. - Secrets (passwords, keys, tokens) are
writeOnly. A response never carries them. OnPUT, omission alone keeps a secret's stored value while the settings' resource address stays the stored one; at another address the secret must be sent again. Other removal requires an explicit request signal. Document provider-specific retention and removal semantics in the API contract, alongside the relevant operation or settings schema. A separate exception to the response rule is a credential an operation itself issues, such as a session token or a single-use download token: it is returned once in that operation's response and in no other. - Some resources have settings that depend on their type: a storage, a notifier and a database. Such a resource puts its settings into a
oneOfwith the discriminatortypeand one schema per provider.
Errors
Every operation has a default response with the Problem schema (RFC 9457) and a code field. The frontend chooses its text by code, so detail is meant for logs and scripts, not for people.
| Status | When | Typical code |
| 400 | the request breaks the contract or a validation rule; errors lists the fields | invalid_request |
| 401 | no valid session | unauthenticated |
| 403 | the actor sees the object but its role does not allow the action | permission_denied |
| 404 | the object does not exist or belongs to a workspace the actor is not a member of | not_found |
| 409 | the state forbids the action, for example the object is in use, the work is already running or the object would be a duplicate | in_use, already_running |
| 429 | a rate limit was hit | rate_limited |
| 500 | anything unexpected; the body has no internal details | internal |
A start refused by the target's backup config answers 400 invalid_request with a field problem on databaseId rather than 409: startLogicalBackup and startPhysicalBackup do so when the config names no storage. startPhysicalBackup also does so when backups are turned off, because its WAL stream has stopped, while startLogicalBackup accepts a manual start then.
A new code is added to its contract's enum in the same change. A code of openapi.yaml is also added to the frontend's dictionary; the frontend does not receive codes exclusive to agent.yaml.
Access
- Operations of the instance admin area carry
x-access: admin, and theusersmiddleware enforces the mark. An operation without a mark requires a signed-in user. - The module checks workspace access through
workspaces.Authorize, which answers 404 and 403 as the table describes. The contract documents both responses. - An operation without a session, such as sign-in or a download by token, carries
x-access: publicand documents why.
Long operations
Starting a backup, a restore or a verification answers 202 with the resource in its in-progress status. The client follows progress with GET on the resource. The operation never blocks until the work ends. A cancel whose status is final when it answers responds 200 with the resource. Starting a physical backup is an exception, for the reason in architecture.md, HTTP API.
Pagination
A list takes limit and after and returns items and nextCursor. The cursor is opaque. nextCursor is absent on the last page. A list has a fixed order, documented in the operation. OFFSET and counts of rows for paging are not offered. A figure that is not a paging count may sit on the page.
Downloads
A file the browser downloads is returned with Content-Disposition and with application/octet-stream or the file's real media type. A link cannot carry the session header. The browser therefore first gets a single-use token from an authenticated POST, then passes it as the token query parameter. Tokens never appear in logs.
Compatibility
Follow the compatibility policy in architecture.md, HTTP API, including frozen agent-discovery paths and explicit approval of request-shape breaks.
Backend side
- The handler maps the generated request to one service call, and the call's result to the generated response. It returns errors through
lib/apierror, so their body always matchesProblem. - The module's tests call the operation through the client from
apptest, which checks every response against the contract.
Frontend side
- Types come only from
shared/api/schema.gen.ts. Do not write API types by hand. - Requests go through the generated client in
shared/api. Errors reach the user only throughtranslateApiError, which chooses the text bycode. - A request is retried only when it failed on the network or with 502, 503 or 504, never on a 4xx.
Before handing over
- The contract passes
mise run backend:lint, and the generated code is up to date. - Every operation has its tag, its
operationId, an access mark where needed, thedefaulterror response and the statuses its access check can give. - Secrets are
writeOnly, settings that vary by type are aoneOf, and lists page with a cursor. - A breaking change is marked in the proposal.
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
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.

