Agent skill

Add CLI Option

by 389ds in 389ds/389-ds-base

Add or change a dsconf/dsctl/dsidm/dscreate flag, subcommand, or noun in src/lib389 — argparse wiring, argtoattr maps, lib389 allowlists, generated man pages, Cockpit coupling, and clu tests.

Custom licenceAuto-check passedTesting & QA

Install Add CLI Option

skills CLI
$ npx skills add 389ds/389-ds-base --skill add-cli-option -a claude-code

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

GitHub CLI
$ gh skill install 389ds/389-ds-base add-cli-option --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/389ds/389-ds-base.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/add-cli-option .claude/skills/add-cli-option && 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-cli-option
GitHub stars
294
Token cost
~1.6k tokens
SKILL.md length
710 words
Files
3 (incl. references)
Skills in repo
7
Repo updated
First seen
Licence
Custom licence

At a glance

Add or change a dsconf/dsctl/dsidm/dscreate flag, subcommand, or noun in src/lib389 — argparse wiring, argtoattr maps, lib389 allowlists, generated man pages, Cockpit coupling, and clu tests.

  • Works in 8 steps: Identify the entry script and handler… → Read the target handler end-to-end and… → Add parser.add_argument('--my-flag',… → …
  • Asked to add an option to dsconf
  • SKILL.md covers Steps and Maintenance
  • Calls git

What it does

Add CLI Option is an agent skill from 389ds/389-ds-base. Add or change a dsconf/dsctl/dsidm/dscreate flag, subcommand, or noun in src/lib389 — argparse wiring, argtoattr maps, lib389 allowlists, generated man pages, Cockpit coupling, and clu tests. Use when asked to add an option to dsconf, create a new dsctl subcommand, expose a server attribute in the CLI, or add a CLI noun. Warning: handler signatures differ per tool (dsconf/dsidm handlers take 4 args, dsctl/dscreate take 3 — wrong arity is a TypeError at dispatch), and hand-built create/add handlers silently drop…

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/handler-patterns.md` and `references/new-noun.md`).

It sits in Testing & QA. The repository describes itself as: The enterprise-class Open Source LDAP server for Linux.

When your agent uses it

  • Asked to add an option to dsconf
  • Create a new dsctl subcommand
  • Expose a server attribute in the CLI

Example prompts

  • “/add-cli-option”

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Identify the entry script and handler arity FIRST.
  2. Read the target handler end-to-end and classify its routing pattern (full
  3. Add parser.add_argument('--my-flag', help='...') inside the module's
  4. Allowlists — the lib389 model layer rejects unknown attributes on two verbs
  5. Never edit or create a man page for these tools. The lib389 build_py hook
  6. Exit and error semantics: the entry script exits 1 only when the handler returns
  7. **STOP before renaming or removing any existing flag or subcommand: the Cockpit
  8. Test under dirsrvtests/tests/suites/clu/, matching the target file's

What it can do on your machine

Read from SKILL.md and the folder at commit cb60126. 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:

    • git

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

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    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 CLI Option loads about 1.6k tokens when it runs, and up to ~3.8k if it reads all its reference files. Until then it costs about 150 tokens; SKILL.md has 710 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~150
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.8k

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 710 words (~1,618 tokens).

“All four tools are argparse front-ends in src/lib389/cli/ that dispatch via set_defaults(func=...) to handlers in src/lib389/lib389/cli_conf/, cli_ctl/, and cli_idm/. CLI semantics: docs/agents/cli.md. Object API: docs/agents/lib389.md.”

— opening of SKILL.md by 389ds, Custom licence
name
add-cli-option

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files (references) in .agents/skills/add-cli-option of 389ds/389-ds-base.

  • SKILL.md
  • references/handler-patterns.md
  • references/new-noun.md

Open the folder on GitHubat commit cb60126

Compare with similar skills

Add CLI Option 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 CLI Option compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add CLI Option this skill389ds/389-ds-base294—~1.6kAutomated safety check: PassCustom licence
Web Application Testinganthropics/skills180k51 repos~966Automated safety check: PassApache-2.0
Diagnosing Bugsfossasia/eventyay-interpretation1.6k31 repos~2.1kAutomated safety check: PassApache-2.0
TDDfossasia/eventyay-interpretation1.6k28 repos~1.1kAutomated safety check: PassApache-2.0
TDD WorkflowhellangleZ/burn-in-cceverywhere-ralph11211 repos~2.4kAutomated safety check: PassNone
TDDsanity-io/sanity6.4k20 repos~1kAutomated safety check: PassMIT

Similar skills

  • Web Application Testing

    anthropics/skills

    Official

    Tests local web applications with Python Playwright scripts, checking frontend behavior, capturing screenshots and reading browser console logs.

    180k GitHub starsUsed in 51 repos~966 tokens
    Testing & QAAuto-check passed
  • Diagnosing Bugs

    fossasia/eventyay-interpretation

    Diagnosis loop for hard bugs and performance regressions. An agent skill from fossasia/eventyay-interpretation.

    1.6k GitHub starsUsed in 31 repos~2.1k tokens
    Testing & QAAuto-check passed
  • TDD

    fossasia/eventyay-interpretation

    Test-driven development. An agent skill from fossasia/eventyay-interpretation.

    1.6k GitHub starsUsed in 28 repos~1.1k tokens
    Testing & QAAuto-check passed
  • TDD Workflow

    hellangleZ/burn-in-cceverywhere-ralph

    A skill your agent uses when writing new features, fixing bugs, or refactoring code.

    112 GitHub starsUsed in 11 repos~2.4k tokens
    Testing & QAAuto-check passed
  • TDD

    sanity-io/sanity

    Official

    Test-driven development with red-green-refactor loop. An agent skill from sanity-io/sanity.

    6.4k GitHub starsUsed in 20 repos~1k tokens
    Testing & QAAuto-check passed
  • Context Driven Development

    Ibrahim-3d/orchestrator-supaconductor

    A skill your agent uses when working with Conductor's context-driven development methodology, managing project context artifacts, or understanding the relationship between product.md, tech-stack.md…

    380 GitHub starsUsed in 8 repos~2.9k tokens
    Testing & QAAuto-check passed

More from 389ds/389-ds-base

  • Commit And PR

    389ds/389-ds-base

    Commit and open a PR the 389-ds-base way — "Issue NNNN - summary" subject, Bug Description/Fix Description body, Fixes:/Relates: trailer, AI-attribution trailer, and squash-merge etiquette.

    294 GitHub stars~1k tokensUpdated yesterday
    Auto-check passed
  • Write Test

    389ds/389-ds-base

    Add or extend a pytest integration test for 389 Directory Server under dirsrvtests/.

    294 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Add Config Attribute

    389ds/389-ds-base

    Add, rename, or wire a server config attribute end to end - a core cn=config attribute (the slap.h/libglobs.c chain) or a plugin config-entry attribute - including the schema line, defaults, upgrade…

    294 GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • Verify Changes

    389ds/389-ds-base

    Verify a 389-ds-base change by routing through the environment's build/test skill — static Python gates plus, via that skill, C compile, cmocka, RPM build and pytest suites, cargo tests, and the…

    294 GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed
  • Touch Backend

    389ds/389-ds-base

    Rules for modifying back-ldbm database code under the dual-backend (BDB + LMDB) architecture.

    294 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • UI Expose Attribute

    389ds/389-ds-base

    Expose a server setting in the Cockpit web console (389-console) or change web UI behavior.

    294 GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Add CLI Option

What does Add CLI Option do?

Add or change a dsconf/dsctl/dsidm/dscreate flag, subcommand, or noun in src/lib389 — argparse wiring, argtoattr maps, lib389 allowlists, generated man pages, Cockpit coupling, and clu tests. Add CLI Option is an agent skill from 389ds/389-ds-base. Add or change a dsconf/dsctl/dsidm/dscreate flag, subcommand, or noun in src/lib389 — argparse wiring, argtoattr maps, lib389 allowlists, generated man pages, Cockpit coupling, and clu tests.

When should I use Add CLI Option?

Add CLI Option fits situations like: asked to add an option to dsconf; create a new dsctl subcommand; expose a server attribute in the CLI.

How do I install Add CLI Option in Claude Code?

Run `npx skills add 389ds/389-ds-base --skill add-cli-option -a claude-code`. Or copy the skill folder (.agents/skills/add-cli-option in 389ds/389-ds-base) into .claude/skills/add-cli-option in your project. Claude Code loads it when a task matches its description.

How do I install Add CLI Option in Codex?

Run `npx skills add 389ds/389-ds-base --skill add-cli-option -a codex`. Or copy the skill folder (.agents/skills/add-cli-option in 389ds/389-ds-base) into .agents/skills/add-cli-option in your project. Codex loads it when a task matches its description.

Can I use Add CLI Option 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 389ds/389-ds-base --skill add-cli-option -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-cli-option, .gemini/skills/add-cli-option, .github/skills/add-cli-option and .opencode/skills/add-cli-option in your project.

What does Add CLI Option need to run?

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

Does Add CLI Option access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Add CLI Option 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 CLI Option use?

Add CLI Option has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Add CLI Option use?

About 1.6k tokens (SKILL.md is roughly 6.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.2k tokens, read only when the agent opens those files.

What are the alternatives to Add CLI Option?

Skills that share tags, products or a category with Add CLI Option: Web Application Testing (anthropics/skills, 180k stars), Diagnosing Bugs (fossasia/eventyay-interpretation, 1.6k stars), TDD (fossasia/eventyay-interpretation, 1.6k stars) and TDD Workflow (hellangleZ/burn-in-cceverywhere-ralph, 112 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add CLI Option?

389ds (a GitHub organization) maintains it in 389ds/389-ds-base, which has 294 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 6, 2026.

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