oh-my-posh is a customizable prompt theme engine that renders command-line prompts across shells and platforms. Developers and terminal users use it to configure primary, secondary, right, and transient prompts in shells such as PowerShell, zsh, Bash, and cmd. The catalogue entries provide skills, instructions, agents, and an MCP integration for working with oh-my-posh.
Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/JanDeDobbeleer/oh-my-poshnpx agentmods add skills/jandedobbeleer/oh-my-posh/segment-createWrote 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.
[](https://agentmods.dev/skills/jandedobbeleer/oh-my-posh/segment-create)<a href="https://agentmods.dev/skills/jandedobbeleer/oh-my-posh/segment-create"><img src="https://agentmods.dev/badge/skills/jandedobbeleer/oh-my-posh/segment-create/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jandedobbeleer/oh-my-posh/segment-create"><img src="https://agentmods.dev/badge/skills/jandedobbeleer/oh-my-posh/segment-create.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Snyk pass
- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Agent Snooping · line 33 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
- medium Agent Snooping · line 91 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.00685 |
| Opus 5.5 | $0.00017 | $0.00274 |
| Sonnet 5.5 | $0.00008 | $0.00137 |
| Haiku 4.5 | $0.00004 | $0.00068 |
Grade A, and why
segment-create 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 13d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Template
Copy src/segments/taskwarrior.go and src/segments/taskwarrior_test.go: two options, a
Template()/Enabled() pair, and every shell call going through the mocked environment.
- Embed
Basefirst in the struct; its exported fields are the template properties. - Declare options as
options.Optionconstants; read them withs.options.String(...),s.options.Bool(...),s.options.KeyValueMap(...)and so on, passing the default there. - Reach the OS, shell, files and network only through
s.envso tests can mock it. - Override
Activation()only for a cheap precondition such as a project file (seesrc/segments/dvc.go);Basedefaults to always active. - Tests are table-driven: a
mock.Environmentfromsrc/runtime/mock, options as anoptions.Map, thenInit(props, env)and assertions onEnabled()and the exported fields.
Checklist
Keep every list sorted alphabetically.
src/segments/<id>.goandsrc/segments/<id>_test.go.src/config/segment_types.go: add the constant<ID> SegmentType = "<id>".src/config/segment_registry.go: addgob.Register(&segments.<GoType>{})toinit()and<ID>: func() SegmentWriter { return &segments.<GoType>{} }toSegments. A missing map entry fails silently at runtime: the segment never renders.themes/schema.json: add<id>todefinitions.segment.properties.type.enumand anif/thenblock todefinitions.segment.allOfdeclaring every option. Copy thetaskwarriorblock; itsunevaluatedProperties: falserejects undeclared options.website/docs/segments/<category>/<id>.mdx, where category is one of agents, cli, cloud, health, languages, music, scm, system or web. Follow thesegment-docsskill, and keep a## Whatparagraph: the segment catalog plugin reads it.website/sidebars.js: add"segments/<category>/<id>"to that category'sitems.website/segment_data.json: add sample data under<id>, shaped like thetaskwarriorentry.website/plugins/segments/registry.json: generated. The firstgo test ./config/...run rewrites it and fails; rerun to confirm, then keep the file.- Credentials needed? Add the doc id to
AUTH_TIERSinwebsite/plugins/segments/data.js.
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.
- 13d ago Changed · -117 lines · -3 tokens per session e46665219cdb
- 1mo ago Changed d7dd1185d80c
- 1mo ago First seen · 170 lines · 45 tokens per session scan A f69c2f8d92b3
segment-create is a skill published in the GitHub repository JanDeDobbeleer/oh-my-posh (23,638 stars, last pushed 3d ago), licensed MIT. It adds 42 tokens to every session and 685 once invoked, about $0.0002 per session on Opus 5.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-08-30.
Other skills, from other repositories
golang-style
Go conventions specific to this author. Use before writing or editing any Go (.go) file.
robotgo
Use when automating desktop GUI operations in Go — mouse/keyboard control, screen capture, image recognition via OpenCV, global hotkeys via gohook. RobotGo: cross-platform Go desktop automation (RPA) library for macOS, Windows, and Linux.
scaffold-go
Scaffold a complete Go project with CI/CD, release pipeline, Makefile, sr.yaml, .envrc, and standard files. Uses go toolchain and make as the native build system. Loads on top of scaffold-project (run that first for cross-language standard files). Use when creating a new Go CLI, service, or module, or when the user…
golang-spf13-cobra
Golang CLI command tree library using spf13/cobra — cobra.Command, RunE vs Run, PersistentPreRunE hook chain, Args validators (NoArgs, ExactArgs, MatchAll, custom), persistent vs local flags, command groups, ValidArgsFunction, RegisterFlagCompletionFunc, ShellCompDirective, usage/help template customization, man-page…
cmd/gerp
Performs native command line terminal operations for gerp subsystem. Use when doing matrix cli executions, or when the user mentions cobra, terminal operators, viper configs, or the gerp binary.
java-clean-comments
Enforces comment and Javadoc hygiene in Java — no commented-out code, no author or ticket metadata, no comments restating the code, and Javadoc that documents contracts rather than repeating signatures. Use when writing or reviewing Java comments and Javadoc, and when the code shows commented-out blocks, TODO or FIXME…