Aller au contenu
Skillpedia
Programmation générale58k · #3220

cli-anything

Ce qu’il fait

Cette compétence fait d'OpenClaw un créateur d'outils en ligne de commande qui enveloppent des logiciels de bureau ou des dépôts de code. Elle s'adresse aux développeurs qui veulent que leur agent d'IA pilote un logiciel par une ligne de commande.

Quand l’utiliser

  • ✓Quand vous voulez qu'OpenClaw construise un outil en ligne de commande pour une application de bureau.
  • ✓Quand vous voulez améliorer un harnais existant avec de nouvelles fonctionnalités.
  • ✓Quand vous voulez valider un harnais selon sa liste de contrôle.

Lien du skill

https://github.com/HKUDS/CLI-Anything/blob/main/macrocli/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/HKUDS/CLI-Anything/blob/main/macrocli/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Construis un harnais en ligne de commande pour ce dossier GIMP et vérifie-le avec la liste de contrôle de validation.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

La compétence lit la méthodologie CLI-Anything dans son dépôt lorsqu'elle est disponible, et suit ses règles de construction. Si la méthodologie complète n'est pas disponible, elle utilise à la place des règles condensées.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

CLI-Anything for OpenClaw

Use this skill when the user wants OpenClaw to act like the CLI-Anything builder.

If this skill is being used from inside the CLI-Anything repository, read ../cli-anything-plugin/HARNESS.md before implementation. That file is the full methodology source of truth. If it is not available, follow the condensed rules below.

Inputs

Accept either:

  • A local source path such as ./gimp or /path/to/software
  • A GitHub repository URL

Derive the software name from the local directory name after cloning if needed.

Modes

Build

Use when the user wants a new harness.

Produce this structure:

<software>/
└── agent-harness/
    ├── <SOFTWARE>.md
    ├── setup.py
    └── cli_anything/
        └── <software>/
            ├── README.md
            ├── __init__.py
            ├── __main__.py
            ├── <software>_cli.py
            ├── core/
            ├── utils/
            └── tests/

Implement a stateful Click CLI with:

  • one-shot subcommands
  • REPL mode as the default when no subcommand is given
  • --json machine-readable output
  • session state with undo/redo where the target software supports it

Refine

Use when the harness already exists.

First inventory current commands and tests, then do gap analysis against the target software. Prefer:

  • high-impact missing features
  • easy wrappers around existing backend APIs or CLIs
  • additions that compose well with existing commands

Do not remove existing commands unless the user explicitly asks for a breaking change.

Test

Plan tests before writing them. Keep both:

  • test_core.py for unit coverage
  • test_full_e2e.py for workflow and backend validation

When possible, test the installed command via subprocess using cli-anything-<software> rather than only module imports.

Validate

Check that the harness:

  • uses the cli_anything.<software> namespace package layout
  • has an installable setup.py entry point
  • supports JSON output
  • has a REPL default path
  • documents usage and tests

Backend Rules

Prefer the real software backend over reimplementation. Wrap the actual executable or scripting interface in utils/<software>_backend.py when possible. Use synthetic reimplementation only when the project explicitly requires it or no viable native backend exists.

Packaging Rules

  • Use find_namespace_packages(include=["cli_anything.*"])
  • Keep cli_anything/ as a namespace package without a top-level __init__.py
  • Expose cli-anything-<software> through console_scripts

Workflow

  1. Acquire the source tree locally.
  2. Analyze architecture, data model, existing CLIs, and GUI-to-API mappings.
  3. Design command groups and state model.
  4. Implement the harness.
  5. Write TEST.md, then tests, then run them.
  6. Update README usage docs.
  7. Verify local installation with pip install -e .

Output Expectations

When reporting progress or final results, include:

  • target software and source path
  • files added or changed
  • validation commands run
  • open risks or backend limitations
Questions fréquentes

D'où vient la méthodologie ?

Elle utilise le fichier de méthodologie CLI-Anything lorsqu'il est à proximité ou peut être téléchargé.

Modifie-t-elle le format de sortie ?

Non, elle garde le format du harnais Python généré identique à celui du reste de la collection.

Accepte-t-elle un lien GitHub ?

Oui, vous pouvez lui donner l'URL d'un dépôt GitHub comme source.

Détails

Description originale de l’auteur

Use when the user wants OpenClaw to build, refine, test, or validate a CLI-Anything harness for a GUI application or source repository. Adapts the CLI-Anything methodology to OpenClaw without changing the generated Python harness format.

repo: HKUDS/CLI-Anything

Popularité

Étoiles GitHub
58k
Position au classement
#3220
Licence
Apache-2.0
Mis à jour
21/09/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires