Agent skill

Add Config

by microbus-io in microbus-io/fabric

TRIGGER when user asks to add or modify a configuration property or setting, or to make a value configurable.

Apache-2.0Auto-check passedBackend & APIs

Install Add Config

skills CLI
$ npx skills add microbus-io/fabric --skill add-config -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install microbus-io/fabric add-config --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/microbus-io/fabric.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/microbus/add-config .claude/skills/add-config && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
add-config
GitHub stars
172
Token cost
~2.3k tokens
SKILL.md length
1,163 words
Files
1
Skills in repo
32
Repo updated
First seen
Licence
Apache-2.0

At a glance

TRIGGER when user asks to add or modify a configuration property or setting, or to make a value configurable.

  • Works in 10 steps: Read Local CLAUDE.md File → Determine the Type → Determine the Properties → …
  • User asks to add
  • Calls go
  • Modify a configuration property

What it does

Add Config is an agent skill from microbus-io/fabric. TRIGGER when user asks to add or modify a configuration property or setting, or to make a value configurable.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering Microservices. The repository describes itself as: Microbus is the only fabric where every agentic workflow runs on a true microservice substrate - giving your workflows security, scale, observability, and prompt-driven authoring. The licence is Apache-2.0.

When your agent uses it

  • User asks to add
  • Modify a configuration property
  • Make a value configurable

Example prompts

  • “/add-config”

Workflow steps

10 steps, taken from the step headings in SKILL.md.

  1. Read Local CLAUDE.md File
  2. Determine the Type
  3. Determine the Properties
  4. Declare the Config in definition.go
  5. Generate the Boilerplate
  6. Implement the Callback
  7. Use the Config
  8. Test the Callback
  9. Add to Config File
  10. Housekeeping

What it can do on your machine

Read from SKILL.md and the folder at commit fb98098. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • go

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Add Config loads about 2.3k tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 1,163 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from microbus-io/fabric at commit fb98098, republished under its Apache-2.0 licence (© microbus-io). 1,163 words, ~2,287 tokens.

Download SKILL.mdSave it as .claude/skills/add-config/SKILL.md (or your agent's skills folder).
name
add-config
description
TRIGGER when user asks to add or modify a configuration property or setting, or to make a value configurable.

CRITICAL: Do NOT explore or analyze other microservices unless explicitly instructed to do so. The instructions in this skill are self-contained to this microservice.

CRITICAL: A config property is declared as a define.Config var in myserviceapi/definition.go; its callback, if any, is implemented in service.go. Add the declaration and run cmd/genservice.

CRITICAL: Keep the // MARKER: MyConfig comment on the define.Config var.

Workflow

Copy this checklist and track your progress:

Creating or modifying a configuration property:
- [ ] Step 1: Read local CLAUDE.md file
- [ ] Step 2: Determine the type
- [ ] Step 3: Determine the properties
- [ ] Step 4: Declare the config in definition.go
- [ ] Step 5: Generate the boilerplate
- [ ] Step 6: Implement the callback
- [ ] Step 7: Use the config
- [ ] Step 8: Test the callback
- [ ] Step 9: Add to config file
- [ ] Step 10: Housekeeping
Step 1: Read Local CLAUDE.md File

Read the local CLAUDE.md file in the microservice's directory. It contains microservice-specific instructions that should take precedence over global instructions.

Step 2: Determine the Type

Determine the type of the configuration property.

A scalar config is one of string, int, bool, float64, or time.Duration. These are stored and converted natively.

A config may also be a structured (JSON) value: a struct, a slice ([]int), a map (map[string]bool), or any JSON-serializable composite (including slices/maps of structs). Its value is stored as JSON text; the generated getter unmarshals it into the typed value and the setter marshals it back. Reach for a structured config when the knob is a list, a set, or a group of related fields rather than a single scalar.

Step 3: Determine the Properties

Determine the properties of the configuration property:

  • Description: explains the purpose of the property. It becomes the godoc on the define.Config var and starts with the property name
  • Default value: an optional default, always written as a string (it flows through the same validate-and-convert path as a configured value)
  • Validation: an optional validation rule (see below)
  • Secret: whether the value is a secret that should not be logged
  • Callback: whether OnChangedMyConfig should fire when the value changes, for example to reopen a connection to an external resource

Validation rules can be any of the following:

  • str followed by a regexp: str ^[a-zA-Z0-9]+$
  • bool
  • int followed by an open, closed or mixed interval: int [0,60]
  • float followed by an open, closed or mixed interval: float [0.0,1.0)
  • dur followed by an open, closed or mixed interval of Go durations: dur (0s,24h]
  • set followed by a pipe-separated list of values: set Red|Green|Blue
  • url
  • email
  • json
Step 4: Declare the Config in definition.go

Append the define.Config var to myserviceapi/definition.go. The godoc is the description from Step 3.

go
/*
MyConfig is X.
*/
var MyConfig = define.Config{ // MARKER: MyConfig
	Value:      int(0),
	Default:    "1",
	Validation: "int (1,100]",
	Secret:     true,
	Callback:   true,
}
  • Value is a type carrier declaring the property's type: string(""), int(0), bool(false), float64(0), or time.Duration(0). The generator reads its type, never the value
  • For a time.Duration config, add the "time" import to definition.go
  • Default is the optional default as a string; omit when there is none
  • Validation is the optional rule from Step 3; omit when there is none
  • Secret: true marks a value that is never logged; omit when false
  • Callback: true makes OnChangedMyConfig fire on change; omit when false

For a structured (JSON) config, the Value carrier is a composite literal of the type, and Validation is json:

go
// RetryPolicy is the structured value of the Retry config.
type RetryPolicy struct {
	MaxRetries int    `json:"maxRetries,omitzero"`
	Backoff    string `json:"backoff,omitzero"`
}

/*
Retry configures how failed operations are retried.
*/
var Retry = define.Config{ // MARKER: Retry
	Value:      RetryPolicy{},
	Default:    `{"maxRetries":3,"backoff":"1s"}`,
	Validation: "json",
}
  • The Value carrier may be a struct (RetryPolicy{}), a slice ([]int{}), a map (map[string]bool{}), or a slice/map of structs ([]RetryPolicy{})
  • Set Validation: "json" so the stored value is checked as valid JSON; when present, Default is the JSON text of the value (e.g. [80,443] for a []int, {"beta":true} for a map[string]bool)
  • Define any new struct type in the api package, in a separate file beside definition.go (e.g. myserviceapi/retrypolicy.go), following the add-type skill. It must live in the api package, not the service package, so the generated getter/setter (which live in the service package) and tests can name it. The type's dv8 validation tags and optional pure Validate method are enforced on every configured value: a value that does not unmarshal into the type or that fails validation is rejected before it is committed
  • The generated getter returns the typed value with normalizing dv8 directives (default=, trim) applied; a missing or malformed stored value yields the type's zero value
Step 5: Generate the Boilerplate

From the microservice's directory, run the generator. It regenerates intermediate.go (the getter, setter, validation, and change dispatcher), mock.go, mock_test.go, and manifest.yaml from the updated definition.go. It also scaffolds a placeholder handler in service.go and a placeholder test in service_test.go for any new feature that lacks one, each ready for you to fill in.

shell
go run github.com/microbus-io/fabric/cmd/genservice .

Then verify the microservice compiles with go vet ./... from the project root.

Show full SKILL.md (462 more words)Show less
Step 6: Implement the Callback

Skip this step if the config does not have a callback.

For a config with a callback, the previous step generated a placeholder func (svc *Service) OnChangedMyConfig(ctx context.Context) (err error) in service.go, tagged // MARKER: MyConfig and holding a // TODO body. Fill in that body to handle the new value; leave the generated signature and godoc as they are.

Step 7: Use the Config

The config has no implementation of its own. Read its value from within other endpoints using the generated getter.

go
myConfig := svc.MyConfig()

Use svc.SetMyConfig(value) to set the value programmatically, for example in tests.

For a structured config the getter returns the typed value (retry := svc.Retry() yields a RetryPolicy) and the setter takes it. When you need to name the type to construct a value, it is in the api package: svc.SetRetry(myserviceapi.RetryPolicy{MaxRetries: 5}).

Step 8: Test the Callback

Skip this step if the config does not have a callback, or if instructed to be "quick" or to skip tests.

When present, the boilerplate generator created a placeholder test function TestMyService_OnChangedMyConfig in service_test.go, tagged with a // MARKER: MyConfig comment and a HINT block. Add one or more test cases at the bottom of that function, following the pattern shown in its HINT comment. Do not remove the HINT comment.

SetMyConfig runs the value through the same validation as a configured value and returns an error when it fails. If the config has a Validation rule, cover both paths: a valid value that sets cleanly (assert.NoError, then assert the getter returns it), and an out-of-range or malformed value that is rejected (assert.Error). The HINT block only shows the happy path.

If the feature or microservice cannot or should not be tested - for example, it starts a daemon or requires a resource unavailable in the test environment - do not delete the generated test. The generator keys on the test function's name and would scaffold it again on the next regeneration. Instead, replace the entire body of the test with a t.Skip("reason") explaining why.

Step 9: Add to Config File

Add a commented-out entry for the new configuration property to the appropriate config file at the root of the project, nested under the hostname of the microservice. Use the default value if one was defined, or leave it blank otherwise.

If the config is secret, add it to config.local.yaml. If the config is not secret, add it to config.yaml. Create the file if it does not exist.

If a section for the hostname already exists in the file, add the new property to that section. Otherwise, create a new section.

yaml
my.service.hostname:
  # MyConfig: default

A structured config's value may be written either as native nested YAML or as a quoted JSON string; both canonicalize to the same stored value:

yaml
my.service.hostname:
  # Retry:
  #   maxRetries: 3
  #   backoff: 1s
Step 10: Housekeeping

Follow the housekeeping skill.

© microbus-io, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/microbus/add-config of microbus-io/fabric.

Open the folder on GitHubat commit fb98098

Compare with similar skills

Add Config next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Add Config compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Config this skillmicrobus-io/fabric172—~2.3kAutomated safety check: PassApache-2.0
Node Backend Development Guidelinesdiet103/claude-code-infrastructure-showcase10k2 repos~2kAutomated safety check: PassMIT
Nodejs Backend Patternsever-works/ever-works15818 repos~4kAutomated safety check: PassAGPL-3.0
AWS Serverless Edazxkane/aws-skills3674 repos~3.2kAutomated safety check: PassMIT
Golang Proantoniopaya22/go-rest-template1723 repos~1.2kAutomated safety check: PassMIT
Dr Jskilljdubois/dr-jskill342—~4.6kAutomated safety check: NotesApache-2.0

Similar skills

  • Node Backend Development Guidelines

    diet103/claude-code-infrastructure-showcase

    Sets layered architecture and coding rules for Node.js, Express and TypeScript microservices, covering routes, controllers, services, repositories, Prisma, Sentry and Zod.

    10k GitHub starsUsed in 2 repos~2k tokens
    Backend & APIsAuto-check passed
  • Nodejs Backend Patterns

    ever-works/ever-works

    Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices.

    158 GitHub starsUsed in 18 repos~4k tokens
    Backend & APIsAuto-check passed
  • AWS Serverless Eda

    zxkane/aws-skills

    AWS serverless and event-driven architecture expert based on Well-Architected Framework.

    367 GitHub starsUsed in 4 repos~3.2k tokens
    Backend & APIsAuto-check passed
  • Golang Pro

    antoniopaya22/go-rest-template

    Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with…

    172 GitHub starsUsed in 3 repos~1.2k tokens
    Backend & APIsAuto-check passed
  • Dr Jskill

    jdubois/dr-jskill

    Creates Java + Spring Boot projects: Web applications, full-stack apps with Vue.js or Angular or React or vanilla JS, PostgreSQL, REST APIs, and Docker.

    342 GitHub stars~4.6k tokensUpdated 8 days ago
    Backend & APIsAuto-check: notes
  • Hybrid Cloud Test Gen

    getsentry/sentry

    Official

    Generate hybrid cloud tests for the Sentry codebase. An agent skill from getsentry/sentry.

    46k GitHub stars~2.6k tokensUpdated today
    Backend & APIsAuto-check passed

More from microbus-io/fabric

All 32 skills in this repo
  • Add Function

    microbus-io/fabric

    TRIGGER when user asks to add, create, or modify an API endpoint, function, or RPC, or a route that accepts typed arguments and returns typed results.

    172 GitHub stars~2.4k tokensUpdated 10 days ago
    Auto-check passed
  • Add Inbound Event

    microbus-io/fabric

    TRIGGER when user asks to listen for, subscribe to, or handle an event emitted by another microservice.

    172 GitHub stars~1.4k tokensUpdated 10 days ago
    Auto-check passed
  • Add Metric

    microbus-io/fabric

    TRIGGER when user asks to add or modify a metric, counter, gauge, or histogram, or to track/measure an operation.

    172 GitHub stars~1.5k tokensUpdated 10 days ago
    Auto-check passed
  • Add Outbound Event

    microbus-io/fabric

    TRIGGER when user asks to fire, emit, or publish an event that other microservices can subscribe to.

    172 GitHub stars~1.7k tokensUpdated 10 days ago
    Auto-check passed
  • Add Python Function

    microbus-io/fabric

    TRIGGER when user asks to add a Python-backed function endpoint to an existing Python-backed microservice.

    172 GitHub stars~1.3k tokensUpdated 10 days ago
    Auto-check passed
  • Add Python Microservice

    microbus-io/fabric

    TRIGGER when user asks to create a microservice that calls Python, runs ML inference, or uses Python libraries (PyTorch, pandas, sentence-transformers, numpy) for its core compute.

    172 GitHub stars~1.1k tokensUpdated 10 days ago
    Auto-check passed

Categories

Questions about Add Config

What does Add Config do?

TRIGGER when user asks to add or modify a configuration property or setting, or to make a value configurable. Add Config is an agent skill from microbus-io/fabric. TRIGGER when user asks to add or modify a configuration property or setting, or to make a value configurable.

When should I use Add Config?

Add Config fits situations like: user asks to add; modify a configuration property; make a value configurable.

How do I install Add Config in Claude Code?

Run `npx skills add microbus-io/fabric --skill add-config -a claude-code`. Or copy the skill folder (.claude/skills/microbus/add-config in microbus-io/fabric) into .claude/skills/add-config in your project. Claude Code loads it when a task matches its description.

How do I install Add Config in Codex?

Run `npx skills add microbus-io/fabric --skill add-config -a codex`. Or copy the skill folder (.claude/skills/microbus/add-config in microbus-io/fabric) into .agents/skills/add-config in your project. Codex loads it when a task matches its description.

Can I use Add Config in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microbus-io/fabric --skill add-config -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-config, .gemini/skills/add-config, .github/skills/add-config and .opencode/skills/add-config in your project.

What does Add Config need to run?

Going by SKILL.md and its folder, Add Config needs the command-line tools its instructions call (go).

Does Add Config access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Add Config safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Add Config use?

Add Config is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Config use?

About 2.3k tokens (SKILL.md is roughly 9.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add Config?

Skills that share tags, products or a category with Add Config: Node Backend Development Guidelines (diet103/claude-code-infrastructure-showcase, 10k stars), Nodejs Backend Patterns (ever-works/ever-works, 158 stars), AWS Serverless Eda (zxkane/aws-skills, 367 stars) and Golang Pro (antoniopaya22/go-rest-template, 172 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Config?

microbus-io (a GitHub organization) maintains it in microbus-io/fabric, which has 172 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on September 28, 2026.

Source: microbus-io/fabric on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.