subagentceo/managed-coworkers/declare-enums
Claude Code and agent skill by subagentceo/managed-coworkers
- community
Checking that the SKILL.md file is still in the repository.
Codify an enum-of-options pattern (e.g. a userConfig connector category, a workflow state machine, a tier tag) as a typed string-union under src/domain/<domain>/. Use when the chassis adds a new dimension where the value space is closed and the type system should enforce membership. Mirrors the chassis's existing pattern (no `enum` keyword for new connector-style enums; `as const` tuple + `(typeof T)[number]`).
Install
npx vskill@latest install subagentceo/managed-coworkers/declare-enumsSKILL.md
The same SKILL.md was published earlier as subagentceo/managed-coworkers/declare-enums.
Declare Enums
First working data-engineering skill. Backed by scripts/declare-enum.ts (CLI) + scripts/lib/declare-enum.ts (pure function, unit-tested).
Workflow
- Pick a domain directory. New enums land under
src/domain/<domain>/. Look at existing siblings (e.g.src/domain/coworkers/CoworkerSession.tsfrom ODEP2) to confirm the new enum fits.
- Pick a PascalCase type name that's singular (the script pluralizes for the
as constconstant name automatically:AnalyticsConnector→ANALYTICS_CONNECTORS).
- Provide options as comma-separated kebab- or snake-case literals:
cf-analytics-engine,ga4.
- Invoke:
``bash tsx scripts/declare-enum.ts connectors AnalyticsConnector cf-analytics-engine,ga4 ODEP3 "Connector picks for the analytics userConfig category." ``
Writes src/domain/connectors/AnalyticsConnector.ts. Refuses to overwrite — safety-first; remove the file manually to regenerate.
- Wire downstream callers. Grep for the now-typed value:
git grep '"cf-analytics-engine"'should turn up the userConfig + any places that need to validate. Replace stringly-typed parameters with the new type.
Pattern reference
The chassis prefers enum keyword for stable domain enums (see src/domain/enums.ts) and as const tuples for operator-mutable connector picks. This skill emits the latter; the operator can refactor to a typed enum later if the value set stabilizes.
Example output:
See also
../../coworker-context.md— enum-of-options discipline + chassis groundingscripts/lib/declare-enum.ts— pure-function implementationscripts/lib/declare-enum.test.ts— 14 unit testsscripts/declare-enum.ts— CLI wrappersrc/domain/coworkers/CoworkerSession.ts— example of the broader pattern in production
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/knowledge-work-plugins/data-engineering/skills/declare-enums/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/subagentceo/managed-coworkers/declare-enums)