← 返回
未分类

Obscure Package Master

Use this skill if your uncertainty with a package's API is > 5% to create a deterministic, versioned mirror of the package repo with a built-in coordinate sy...
当对包的 API 不确定性超过 5% 时使用此技能,可创建该包仓库的确定性、版本化镜像,并内置坐标系统。
amberlee2427 amberlee2427 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 308
下载
💾 0
安装
1
版本
#latest

概述

Obscure Package Master

This skill allows you to ground yourself in the objective reality of a package's source code by generating a deterministic "grep map" and a local mirror of its source.

Trigger Scenarios

  • You are working with a library that is not in your top-tier training set (e.g., NOT numpy, pandas, requests).
  • You find yourself searching for basic API signatures or parameters for a library.
  • You have a >= 5% uncertainty about a package's API behavior or structure.
  • The package's documentation is sparse or confusing.

Instructions

When the trigger conditions are met, follow these steps to generate a grounded reference for the package:

  1. Identify the Package & Version: Determine the package name and the exact version you need (e.g., from requirements.txt, pyproject.toml, or pip show).
  2. Run the Generator: Execute the generate_mirror.py script to create a local skill for that specific package version.

```bash

python3 /generate_mirror.py

```

  1. Activate the New Skill: Once generated, a new skill will be available in .skills/-.
  2. Use the Grep Map: Read the SKILL.md of the newly created skill. It contains a map of all classes and functions with their exact line ranges.
  3. Targeted Reading: Use the map to perform surgical read_file calls on the files in the references/ directory of the new skill.
    • Example: "I see MyClass.my_method is in references/utils.py lines 120-145. I will read those lines now."

Core Principles

  • Deterministic: The map is a direct reflection of the source code (AST-parsed). No LLM interpretation is involved in building the map.
  • Coordinate System: Use the provided line ranges to avoid reading large files. Only grep exactly what you need.
  • Grounding: If the package source is available, there is no excuse for API hallucinations.

Provider Compatibility

This skill is designed to work with any AI agent provider that can execute Python scripts. The output location is configurable for each provider:

ProviderDefault skills pathAuto-detected via env var(s)
----------------------------------------------------------------------------------------------------
Claude~/.claude/skillsANTHROPIC_API_KEY, CLAUDE_API_KEY
Gemini~/.gemini/skillsGEMINI_API_KEY, GOOGLE_GENERATIVEAI_API_KEY
Codex~/.copilot/skillsCODEX_API_KEY, GITHUB_COPILOT_TOKEN
Cursor~/.cursor/skills
OpenAI~/.openai/skillsOPENAI_API_KEY
OpenClaw~/.openclaw/skills
Cline~/.cline/skills

Configuration priority (highest wins):

  1. AGENT_SKILLS_PATH environment variable
  2. skills_path in config.json
  3. Provider-specific default (auto-detected or set via provider in config.json / AGENT_PROVIDER env var)
  4. .skills/ in the current working directory

Example config.json for explicit provider selection:

{
  "provider": "gemini"
}

Note: This skill currently supports Python packages via PyPI.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 23:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 326,980
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,498
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,741