agentleFS
no-todayno-today/aidev-clis/skills/use-aidev/SKILL.md

use-aidev

Skill0 starsChanged 13 days agoMITView on GitHub

Use when an AI agent enters a workspace and needs to discover which aidev CLIs (dbcli/logcli/jcli/httpcli) are usable here, and — when a task targets one of several configured targets — which CLIs apply to that target. `aidev` is a read-only discovery command scoped to the workspace's active scene. Also the shared-setup reference — first-time configuration of `~/.aidev-clis` (config-dir layout, the credentials model, the copy-a-template-and-fill workflow) and config backup/restore.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run it with no flags — output is the JSON envelope by default (AI-first).

    line 13
  2. Very specific:

    When a task names (or implies) a target, read its clis to pick the right tool.

    line 36
  3. Very specific:

    All CLIs read one shared config dir, ~/.aidev-clis/ (override with the AIDEV_CLIS_HOME env var).

    line 51

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

use-aidev

aidev answers two questions, scoped to the current workspace's scene (resolved from the nearest .aidev.yaml, or the AIDEV_SCENE env var; no marker ⇒ everything is in scope). It is read-only and never dispatches — you still call dbcli/logcli/jcli/httpcli directly to do work.

Run it with no flags — output is the JSON envelope by default (AI-first); do not pass --output:

aidev

Output contract (parse this)

{"data":{
  "workspace": {"scene":"companyA","source":"…/.aidev.yaml"},
  "tools": ["dbcli","httpcli","jcli","logcli"],
  "targets": {"a-uat":{"clis":["dbcli","jcli","logcli"]}, "a-prod":{"clis":["logcli"]}},
  "apps": ["svc-login"]
}}
  • workspace.scene is the active scene (null when unscoped).
  • tools — which CLIs are usable in this workspace at all. Use on entry to learn your toolbox.
  • targets — for each configured target, which target-keyed CLIs apply. Capability varies: a-uat is full (db+jenkins+log); a-prod is log-only. When a task names (or implies) a target, read its clis to pick the right tool; if the target is ambiguous, ask the user which one.
  • apps — httpcli is app-keyed (not target-keyed), so its in-scope apps are listed here as a sorted string array; each is callable via httpcli … <app>.

A tool missing from tools is not configured in this scene — don't use it here.

These CLIs surface real data: real PII in any result never goes into seed data, tests, docs, or persistent notes (full rules: the aidev-dbcli skill).

A sample scene marker, .aidev.yaml, is bundled alongside this skill — drop it at a project root to scope discovery to one scene.

Setting up ~/.aidev-clis

All CLIs read one shared config dir, ~/.aidev-clis/ (override with the AIDEV_CLIS_HOME env var). Layout:

~/.aidev-clis/
  dbcli.yaml  httpcli.yaml  jcli.yaml  logcli.yaml   # per-CLI: targets/apps + credential refs
  actors.yaml                                        # shared identities (httpcli + tcli)
  credentials/                                       # secret files, mode 0600 — the AI never reads these
  sessions/  cache/  audit/  backups/                # runtime state (auto-created)

The AI writes the *.yaml, the human owns credentials/. That split is the project's whole point — config files carry only a credential: reference, never a secret, so the AI can write and edit configs without ever handling one.

To configure a CLI from zero:

  1. Copy the configuration template. The database, log, Jenkins and HTTP skills ship the matching *.yaml next to it (installed by make install). Copy it to ~/.aidev-clis/<cli>.yaml. When helping a user, you can offer to scaffold this YAML from that sample — fill in targets/apps, leave secrets as credential: references.
  2. The human creates the credential file(s). Each credential: <name> points at ~/.aidev-clis/credentials/<name> (mode 0600). The payload shape is per-CLI — a bare password, a {user,api_token} JSON, an AK/SK JSON, a kubeconfig — documented in that CLI's own skill. In actors.yaml, an actor var can be secret:<name> to pull from credentials/ instead of inlining it. The credential's own scope (a read-only DB account, a logs-only SA) is the real security boundary — provision it narrow.
  3. Verify. <cli> targets (or httpcli apps) should list what you added; aidev should now show the CLI/target in scope.

Config backup/restore

Discovery is read-only, but aidev config is the one mutating exception — it backs up and restores your ~/.aidev-clis setup (top-level *.yaml plus credentials/):

aidev config backup                     # write <home>/backups/aidev-config-<ts>.tar.gz
aidev config restore <archive.tar.gz>   # aliases: import, use

restore writes config files, taking a safety backup of the current config first (unless --no-backup).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.