Agent skill · Design & Presentation

connection-schema-design

Connection profile and state schema design rules and core profile selection

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill connection-schema-design-zerobias-org-module --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 12 KB
Bundled scripts: none
Path: skills/api/connection-schema-design-zerobias-org-module/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Connection Profile & State Design Rules **Rules for designing connectionProfile.yml and connectionState.yml schemas** ## 🚨 CRITICAL RULES ### Rule 1: Always Extend Core Profiles **NEVER create custom profiles from scratch - ALWAYS extend core profiles** ```yaml # ❌ WRONG - Custom profile type: object properties: apiKey: type: string # ✅ CORRECT - Extend core profile $ref: './node_modules/@zerobias-org/types-core/schema/tokenProfile.yml' ``` ### Rule 2: connectionState MUST Extend baseConnectionState **🚨 MANDATORY**: connectionState.yml MUST extend baseConnectionState.yml for expiresIn ```yaml # ✅ CORRECT - Extends base with expiresIn allOf: - $ref: './node_modules/@zerobias-org/types-core/schema/baseConnectionState.yml' - type: object properties: accessToken: type: string # ❌ WRONG - Missing baseConnectionState type: object properties: accessToken: type: string # Missing expiresIn! ``` **WHY**: Server uses expiresIn to schedule automatic token refresh cronjobs ### Rule 3: expiresIn Must Be in Seconds ```yaml # ✅ CORRECT expiresIn: type: integer description: Token expiry time in SECONDS from now # ❌ WRONG expiresAt: type: string # Don't use expiresAt, convert to expiresIn ``` **

What's inside
Steps it walks through
  1. 🚨 CRITICAL RULES
  2. Rule 1: Always Extend Core Profiles
  3. Rule 2: connectionState MUST Extend baseConnectionState
  4. Rule 3: expiresIn Must Be in Seconds
  5. Core Profile Selection
  6. Available Core Profiles
  7. Selection Decision Tree
  8. Available Core States
  9. State Selection
  10. Common Patterns
  11. Pattern 1: Simple API Token
  12. Pattern 2: OAuth Client Credentials
  13. Pattern 3: OAuth with Refresh Token
  14. Pattern 4: Custom Fields (Extend Core)
Ships with 1 file
  • metadata.json
Commands it runs
Check what tokenProfile.yml provides
cat node_modules/@zerobias-org/types-core/schema/tokenProfile.yml
Check what basicConnection.yml provides
cat node_modules/@zerobias-org/types-core/schema/basicConnection.yml
Check what baseConnectionState.yml provides
cat node_modules/@zerobias-org/types-core/schema/baseConnectionState.yml
More from claude-skill-registry
All skills →
About this skill
What does the connection-schema-design skill do?

Connection profile and state schema design rules and core profile selection

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill connection-schema-design-zerobias-org-module --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going