jackwener/opencli-autofix

Corrige automatiquement les adaptateurs OpenCLI défectueux lorsque des commandes échouent. Chargez cette compétence en cas d'échec d'une commande opencli — elle vous guide pour collecter un artefact de trace, corriger l'adaptateur, réessayer et soumettre un problème GitHub en amont après une correction vérifiée. Fonctionne avec n'importe quel agent IA.

Qu'est-ce que opencli-autofix ?

Cette compétence automatise la correction des adaptateurs OpenCLI qui échouent lors de l'exécution de commandes. Elle est particulièrement utile pour les développeurs et les utilisateurs d'agents IA travaillant avec l'écosystème OpenCLI, car elle assure une résolution rapide et systématique des problèmes. Elle fonctionne avec n'importe quel agent IA (Claude Code, Cursor, Codex, etc.) et ne nécessite aucune plateforme spécifique. La compétence guide l'utilisateur à travers un processus en quatre étapes : collecte d'un artefact de trace (comme les logs et le contexte), application d'un correctif sur le fichier de l'adaptateur concerné, réexécution de la commande pour vérifier la correction, et enfin création d'un rapport de problème GitHub détaillé avec la correction pour contribution en amont. Cela permet de maintenir la stabilité des workflows OpenCLI et de réduire le temps de débogage.

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/jackwener/opencli/tree/main/skills/opencli-autofix

Installed? Explore more Productivité et collaboration skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Que fait opencli-autofix ?

Corrige automatiquement les adaptateurs OpenCLI défectueux lorsque des commandes échouent. Chargez cette compétence en cas d'échec d'une commande opencli — elle vous guide pour collecter un artefact de trace, corriger l'adaptateur, réessayer et soumettre un problème GitHub en amont après une correction vérifiée. Fonctionne avec n'importe quel agent IA.

Instructions

  1. Identifier l'échec — Considérez le message d'erreur de la commande opencli <commande> ayant échoué.
  2. Collecter un artefact de trace — Rassemblez les journaux d'erreur, l'adaptateur concerné, et le fichier de configuration.
  3. Corriger l'adaptateur — Modifiez le fichier de l'adaptateur (~/.opencli/adapters/<nom>) pour résoudre le problème (par exemple, corriger un chemin, une dépendance, ou une syntaxe).
  4. Réessayer — Exécutez à nouveau la commande échouée opencli <commande> pour vérifier que la correction fonctionne.
  5. Soumettre un problème GitHub - Une fois la correction vérifiée, créez un problème sur le dépôt en amont de l'adaptateur avec l'artefact de trace et la correction proposée.

Exemple

$ opencli deploy
Erreur : Impossible de trouver le module adaptateur. Vérifiez le fichier de configuration de l'adaptateur.

# Artefact de trace
# 1. Le message d'erreur ci-dessus
# 2. ~/.opencli/adapters/deploy.py (extrait) :
#    from custom_lib import helper  # <- la bibliothèque 'custom_lib' est manquante
# 3. Correctif : Remplacer l'import manquant par une implémentation locale qui fonctionne.

Intégration avec GitHub Issues

Après une correction réussie, soumettez un problème GitHub contenant :

  • Résumé de l'erreur
  • Artefact de trace (journal, code de l'adaptateur)
  • Correction appliquée (diff ou extrait de code)
  • Instructions de reproduction

Support de plateforme

  • Fonctionne avec n'importe quel agent IA (Claude Code, Cursor, Codex, etc.)
  • Pas de dépendances externes spécifiques
  • Fonctionne hors ligne après le chargement initial

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

jackwener/opencli-adapter-author

Use when writing an OpenCLI adapter for a new site or adding a new command to an existing site. Guides end-to-end from first recon through field decoding, adapter coding, and verify. Replaces opencli-oneshot / opencli-explorer. For ad-hoc browser driving (no adapter), see opencli-browser instead; for a top-level orientation to opencli, see opencli-usage.

jackwener/opencli-browser

Use when an agent needs to drive a real Chrome window via opencli — inspect a page, fill forms, click through logged-in flows, or extract data ad-hoc. Covers the selector-first target contract, compound form fields, stale-ref handling, network capture, and the agent-native envelopes the CLI returns. Not for writing adapters — see opencli-adapter-author for that.

jackwener/opencli-explorer

Use when creating a new OpenCLI adapter from scratch, adding support for a new website or platform, exploring a site's API endpoints via browser DevTools, or when a user asks to automatically generate a CLI for a website (e.g. "帮我生成 xxx.com 的 cli"). Covers automated generation, API discovery workflow, authentication strategy selection, TS adapter writing, and testing.

jackwener/opencli-oneshot

Use when quickly generating a single OpenCLI command from a specific URL and goal description. 4-step process — open page, capture API, write TS adapter, test. For full site exploration, use opencli-explorer instead.

jackwener/opencli-operate

Make websites accessible for AI agents. Navigate, click, type, extract, wait — using Chrome with existing login sessions. No LLM API key needed.

jackwener/opencli-usage

Use at the start of any OpenCLI session — this is the top-level map of what `opencli` can do, how to discover adapters, what flags and output formats are universal, and which specialized skill to load next. Point here when an agent asks "what can opencli do?" or "how do I find the right command?".

jackwener/smart-search

基于 opencli 命令的智能搜索路由器。当用户想要使用 OpenCLI、CLI 或 API 搜索、查询、查找或研究信息时,尤其是涉及指定网站、社交媒体、技术资料、新闻、购物、旅游、求职、金融或中文内容时,务必使用此 skill

Skills associés