Skip to content
Back to skills

Dot Development

ASecurity

Develop fmind_dot CLI, with-secret, dot_tasks, and contract tests.

  • 14 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentspythonrustgitdocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add fmind/dot --skill dot-development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dot Development?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dot Development
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fmind-dot-development/badge)](https://www.skillsdirectory.com/skills/fmind-dot-development)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dot-development
description: "Develop fmind_dot CLI, with-secret, dot_tasks, and contract tests."
license: MIT
metadata:
  kind: task
  author: Médéric HURIER (Fmind)
  source: github.com/fmind/dot/tree/main/.agents/skills/dot-development
  created: "2026-09-09"
  updated: "2026-11-28"
---

# Develop Dot

Modify `fmind_dot` while preserving CLI and installation contracts. [dot-cli](../../../skills/dot-cli/SKILL.md) operates the CLI; [python](../../../skills/python/references/foundation/GUIDE.md) and [argparse](../../../skills/python/references/argparse/GUIDE.md#defaults-for-new-clis) own Python packaging and CLI design.

## Workflow

1. **Locate the owner**: inspect the layout below and read current code before choosing a seam (`rg -l <symbol> dot/tests tests` finds test owners).
1. **Preserve the surface**: keep [CLI contracts](../../../skills/python/references/argparse/GUIDE.md#defaults-for-new-clis) and Fish completions intact unless changing them. Test config failures via the public CLI; `--help` and `doctor --headroom` must work without config loading.
1. **Use existing boundaries**: route config, streams, subprocesses, and fan-out through `State`, `Runner`, and `run_parallel`. Runtime dependency is strictly PyYAML (`@dataclass`, strict validators, stdlib). Isolate tests with temp homes and fake runners so suites never touch live auth or host state.
1. **Test and qualify**: run `uv run --locked --project dot pytest -c dot/pyproject.toml -q dot/tests/<test_file>.py` covering changed paths and failure modes, plus `AGENTS.md` static checks (isolate formatters alongside unrelated edits).
1. **Check the right binary**: test checkout code via `uv run --locked --project dot dot <command>`. When installation is in scope, run `mise run deploy` (`uv tool install` locked to `dot/uv.lock`) and verify `dot --version` plus the changed command (`mise run doctor` checks workstation health, not checkout code).

## Layout and seams

- **Directories**: `dot/src/fmind_dot/` holds the runtime CLI; `dot/dot_tasks/` holds repo maintenance tasks; `dot/tests/` holds CLI and task unit tests (`test_<module>.py` when 1:1); root `tests/` holds chezmoi, Fish, starter, and skill contract tests.
- **CLI & completions**: `cli.build_parser()` registers subcommands alphabetically via `Parser.command()` / `Parser.group()` with `handler(state, args)` raising `UsageError` (exit `2`). `command.FISH_COMPLETION` invokes `dot` with `_DOT_COMPLETE` for live completion, and `mise run completions` refreshes generated Fish completions.
- **Output & styling**: default human reports to aligned tables via `reporting.write_table` (keep compact status lines for interactive flows like `login` and `trust`) and expose `--json` with a versioned `schema` for agents; apply standard ANSI colors on TTY only and honor `NO_COLOR`, `TERM=dumb`, and `--no-color`.
- **Auth & `with-secret`**: test provider auth with synthetic probes only (never live login as a test gate). `with-secret` (`~/.local/bin/with-secret`) injects secrets in child env only and rejects `UV_PUBLISH_TOKEN` (PyPI uses Trusted Publishing).

## Documentation

- [Project tasks](../../../mise.toml) · [package config](../../../dot/pyproject.toml) · [releases](https://github.com/fmind/dot/releases) · [changelog](https://github.com/fmind/dot/blob/main/CHANGELOG.md)
- Companion skills: [chezmoi](../chezmoi/SKILL.md), [dot-release](../dot-release/SKILL.md).

Files in this skill

  • SKILL.md4.6 KB
  • references/session-compatibility.md3.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.