Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

codingcoding 搜索

Agent Skill

coding 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

776

周安装

33

GitHub Stars

4

下载量

272
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:coding(coding 搜索)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/coding
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill coding
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill coding

简介

coding 用于辅助编码决策,包括编程语言选择、范式指导(如 OOP、函数式)以及代码质量原则(SOLID、DRY),适合在 Codex、Claude、Cursor、Gemini CLI 中编写或审查代码时使用。

  • 它能帮助开发者避免反模式,并在多语言项目中提供结构化和可维护的代码建议。
  • 安装命令为 npx skills add https://github.com/alphaonedev/openclaw-graph --skill coding,需从 GitHub 获取原始 README 进一步确认用法。
  • 使用前建议核对权限范围、维护状态,并确认是否会触发文件读写或代码生成操作。
  • coding 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

coding

Purpose

This skill enables OpenClaw to assist with coding tasks, including selecting programming languages, guiding on paradigms (e.g., OOP, functional), enforcing code quality principles like SOLID, DRY, and YAGNI, and adhering to PR standards such as meaningful commits and code reviews.

When to Use

Use this skill when writing new code, refactoring existing code, or reviewing pull requests. Apply it for language selection in multi-language projects, paradigm decisions in complex systems, or quality checks to avoid anti-patterns. Ideal for developers facing decisions on code structure or standards compliance.

Key Capabilities

  • Language selection: Automatically suggests languages based on project needs, e.g., recommending Python for scripting or Java for enterprise apps.
  • Paradigm guidance: Provides advice on paradigms like OOP (e.g., use classes for encapsulation) or functional programming (e.g., prefer immutability).
  • Code quality enforcement: Checks for SOLID principles (e.g., Single Responsibility: ensure classes have one reason to change) and DRY/YAGNI (e.g., detect duplicated code blocks).
  • PR standards: Validates commits against rules like atomic changes and descriptive messages.
  • Integration with tools: Parses Git diffs for PR reviews or analyzes code snippets for quality metrics.

Usage Patterns

To use this skill, invoke OpenClaw via CLI or API, specifying inputs like code snippets or project context. For language selection, provide project requirements; for paradigm guidance, include code samples. Always pass an API key via environment variable, e.g., set $OPENCLAW_API_KEY before commands. Structure requests with JSON payloads containing fields like "language", "code", and "paradigm". Handle responses by parsing JSON for suggestions or corrections. Example pattern: Pipe code through OpenClaw for real-time feedback in a CI/CD pipeline.

Common Commands/API

Use the OpenClaw CLI for quick tasks or the REST API for programmatic access. CLI commands require $OPENCLAW_API_KEY set. API endpoints use POST requests with JSON bodies.

  • CLI Command: openclaw code --language python --paradigm oop --check solid < input.txt

- Flags: --language specifies the language (e.g., "python", "java"); --paradigm sets guidance type (e.g., "oop"); --check enables quality checks (e.g., "solid", "dry"). - Output: JSON with suggestions, e.g., {"suggestion": "Use a class for this function."}

  • API Endpoint: POST to /api/coding/assist

- Body: JSON like {"code": "def add(a, b): return a + b", "language": "python", "checks": ["dry", "yagni"]} - Headers: Include Authorization: Bearer $OPENCLAW_API_KEY - Response: JSON object, e.g., {"quality_score": 8, "issues": ["Function violates DRY principle"]}

  • Code Snippet for API Call (Python): import requests api_key = os.environ.get('OPENCLAW_API_KEY') response = requests.post('https://api.openclaw.ai/api/coding/assist', headers={'Authorization': f'Bearer {api_key}'}, json={'code': 'some code', 'language': 'js'}) print(response.json()['suggestion'])
  • Config Format: Use JSON for configurations, e.g., {"default_language": "python", "checks": ["solid", "dry"], "paradigm": "functional"} Save as .openclaw-config.json in your project root for CLI overrides.

Integration Notes

Integrate this skill into IDEs like VS Code via extensions or scripts that call the API. For CI/CD, use it in GitHub Actions by adding a step: run: openclaw code --check solid --input path/to/code.py. Ensure $OPENCLAW_API_KEY is stored securely, e.g., in GitHub Secrets as OPENCLAW_API_KEY. For web apps, embed API calls in backend services, handling rate limits (e.g., 100 requests/min). Test integrations with mock responses to avoid live API hits during development.

Error Handling

When errors occur, check HTTP status codes from API responses (e.g., 401 for unauthorized, indicating missing $OPENCLAW_API_KEY). For CLI, parse error messages like "Error: Invalid language specified" and retry with corrections. Implement retry logic for transient errors (e.g., 5xx status codes) using exponential backoff. In code, wrap API calls in try-except blocks:

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()
except requests.exceptions.HTTPError as e:
    print(f"Error: {e.response.status_code} - {e.response.text}")

Log errors with context, such as the input code, for debugging.

Concrete Usage Examples

  1. Example 1: Generating Code with Language Selection

- Task: Write a simple function in Python using OOP paradigm. - Command: openclaw code --language python --paradigm oop --prompt "Implement a counter class" - Expected: Output JSON with code like {"code": "class Counter: def init(self): self.count = 0"} - How: Set $OPENCLAW_API_KEY, run the command, and integrate the response into your project.

  1. Example 2: Code Quality Review for PR

- Task: Check a JavaScript snippet for DRY and SOLID violations. - API Call: POST to /api/coding/assist with body {"code": "function add(a) {return a + 1;} function addTwo(b) {return b + 2;}", "language": "js", "checks": ["dry"]} - Expected: Response like {"issues": ["Functions are similar; consider a generic add function to follow DRY"]} - How: Use the response to refactor code before committing, e.g., merge functions in your editor.

Graph Relationships

  • Related to: debugging (shares code analysis capabilities), testing (enforces quality for testability), deployment (guides on production-ready code).
  • Clusters: coding (primary), software (secondary for broader development tasks).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.87%
按下载量换算92

Claude

29.84%
按下载量换算81

Cursor

18.93%
按下载量换算51

Gemini CLI

8.97%
按下载量换算24

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills