adding-config-fields

adding-config-fields is a skill for Claude Code, Codex from dork-labs/dorkos. It costs 61 tokens per session (6,451 once invoked), scanned A, original, MIT.

Patterns for adding, renaming, removing, or retyping fields in DorkOS user config. Use when editing UserConfigSchema, MarketplacesFileSchema, or any conf-backed store — walks the Zod field → defaults → conf migration → docs → test lifecycle end-to-end.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/dork-labs/dorkos/adding-config-fields
Any agent
npx skills add dork-labs/dorkos --skill adding-config-fields
Clone the repo
git clone --depth 1 https://github.com/dork-labs/dorkos

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for adding-config-fields

README.md
[![agentmods](https://agentmods.dev/badge/skills/dork-labs/dorkos/adding-config-fields.svg)](https://agentmods.dev/skills/dork-labs/dorkos/adding-config-fields)
Your own site
<a href="https://agentmods.dev/skills/dork-labs/dorkos/adding-config-fields"><img src="https://agentmods.dev/badge/skills/dork-labs/dorkos/adding-config-fields.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,451 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00061 $0.06451
Opus 5 $0.00030 $0.03225
Sonnet 5 $0.00012 $0.01290
Haiku 4.5 $0.00006 $0.00645

Measured today against content hash a6ecb9ca0477, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

adding-config-fields scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/adding-config-fields/SKILL.md · 377 lines

How it starts

The opening of the file, as written. The whole thing — 377 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Adding Config Fields in DorkOS

Overview

This skill guides the full lifecycle of changing ~/.dork/config.json (or, post-refactor, ~/.dork/marketplaces.json) schema: Zod field → import-time defaults → conf migration → docs update → tests → CLI flag wiring if applicable. Use it whenever you touch UserConfigSchema so you don't ship a partial change.

DorkOS uses the conf library (v15.1.0) for persistent user configuration, wrapped at apps/server/src/services/core/config-manager.ts. Zod is the authoritative schema and is bridged to conf's Ajv validation via z.toJSONSchema(UserConfigSchema). You do not hand-write JSON Schema; you edit Zod and let the bridge regenerate it.

When to use

  • You're about to edit packages/shared/src/config-schema.ts (adding, renaming, removing, or retyping a field in UserConfigSchema).
  • You're about to edit apps/server/src/services/core/config-manager.ts for any reason related to the migrations block or projectVersion.
  • (Future) You're about to edit MarketplacesFileSchema once apps/server/src/services/marketplace/marketplace-source-manager.ts is refactored onto conf.
  • A user asks "how do I add a setting to DorkOS?" or "how do config migrations work here?"
  • /system:release Phase 2 flags a config schema drift and you need to write the migration.

Key concepts

The authoritative files

File Role
packages/shared/src/config-schema.ts Authoritative. Zod schema + defaults constant. Change this first.
apps/server/src/services/core/config-manager.ts The conf wrapper. Holds projectVersion + migrations. Change this second.
contributing/configuration.md User-facing settings reference. Update the table + narrative.
docs/getting-started/configuration.mdx External Fumadocs mirror of the same reference. Keep in sync.
apps/server/src/services/core/__tests__/config-manager.test.ts Migration + upgrade-path tests.
packages/cli/src/cli.ts CLI flag wiring (only if the field needs a flag).

Read the full file on GitHub · 377 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 377 lines · 61 tokens per session scan A a6ecb9ca0477

Subscribe to this mod's changes

adding-config-fields is a skill published in the GitHub repository dork-labs/dorkos (9 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 6,451 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.