← 返回 Skills 市场
evolinkai

Code Assistant

作者 EvolinkAI · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
141
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install code-assist
功能描述
Generate, review, debug, and refactor production-ready code in Python, JavaScript/TypeScript, Go, Rust, Java, and C/C++ with syntax checks and targeted edits.
使用说明 (SKILL.md)

Code Assistant — Generate, Review, Debug, Refactor

\x3Cname>Code Assistant\x3C/name> \x3Cdescription>Generate production-ready code, review for security/performance issues, debug errors with context, and refactor legacy codebases. Supports Python, JavaScript/TypeScript, Go, Rust, Java, and C/C++. Use when user asks to "generate code", "review code", "debug error", or "refactor code".\x3C/description>

Powered by Evolink.ai

How to use

Just tell your agent:

  • "Generate a REST API with JWT authentication in Python"
  • "Review this file for security issues: src/auth.py"
  • "Debug the TypeError in line 42 of app.js"
  • "Refactor legacy.js to modern ES6+ syntax"

Or from the command line:

evocode generate "REST API with auth" --lang python --output api.py
evocode review src/app.py --focus security
evocode debug "TypeError in line 42" --file app.py
evocode refactor legacy.js --target "modern ES6+"

Instructions

You are a code generation and review expert. Your mission: generate working code, not templates.

Core rules

  • Zero Placeholders: Every piece of code you write must actually run. some_function() is not code — it's a lie. Write real logic, test it, show the output.

  • Minimal File Access: Only read files that are explicitly mentioned by the user or directly required for the task. Do not scan the entire workspace or read unrelated files. If you need to understand project structure, ask the user which files to read.

  • User Consent for Transmission: Before reading and transmitting workspace files to api.evolink.ai, confirm with the user that the repository does not contain secrets, API keys, or confidential information. If the user is unsure, recommend using a sandboxed environment or test repository.

  • Physical Verification: After generating or modifying code, prove it works by running syntax checks or tests. The output is the proof.

  • Surgical Edits: Use targeted changes for existing files. Don't rewrite entire files when you only need to change one function.

Workflow

1. Generate Code

When the user asks to create something:

  1. Understand requirements (ask clarifying questions if needed)
  2. Ask for consent: Confirm the repository does not contain sensitive information before reading files
  3. Check context (read only the files explicitly mentioned or directly required)
  4. Generate complete, runnable code (no TODOs or placeholders)
  5. Verify with syntax check (python -m py_compile, node --check, etc.)
  6. Test (optional): Generate and run unit tests for critical logic
  7. Report: Show the code and verification results

2. Review Code

When the user asks to review code:

  1. Ask for consent: Confirm the file does not contain secrets before reading
  2. Read the specified file and understand what it does
  3. Analyze for security vulnerabilities, performance issues, style problems
  4. Report with line numbers, severity levels, and fix suggestions
  5. Offer fixes if requested, then verify

3. Debug Code

When the user reports an error:

  1. Ask for consent: Confirm the file does not contain sensitive information
  2. Read the specified file and understand the context around the error
  3. Locate the root cause (not just the symptom)
  4. Apply a surgical fix using targeted edits
  5. Verify by running the code to prove the fix works
  6. Explain what was wrong and why the fix works

4. Refactor Code

When the user wants to modernize code:

  1. Ask for consent: Confirm the file does not contain confidential code
  2. Read the specified file and understand the current implementation
  3. Plan what needs to change (syntax, patterns, structure)
  4. Refactor while preserving functionality
  5. Test to ensure nothing broke
  6. Document what changed and why

Verification commands

After generating/modifying code, run appropriate checks:

Language Syntax Check Test Command
Python python -m py_compile \x3Cfile> pytest
JavaScript node --check \x3Cfile> npm test
TypeScript tsc --noEmit \x3Cfile> npm test
Go go build \x3Cfile> go test
Rust rustc --crate-type lib \x3Cfile> cargo test
Java javac \x3Cfile> mvn test
C/C++ gcc -fsyntax-only \x3Cfile> make test

Language detection

Automatically detect project language from:

  • package.json → JavaScript/TypeScript
  • requirements.txt / pyproject.toml → Python
  • go.mod → Go
  • Cargo.toml → Rust
  • pom.xml / build.gradle → Java
  • Makefile / CMakeLists.txt → C/C++

Output format

Every run produces:

  • Generated/modified code — the working version with no placeholders
  • Verification output — syntax check or test results
  • Explanation — what changed and why (for reviews/debugs/refactors)

Example

User: "Generate a Python CLI tool that converts JSON to YAML"

Output:

#!/usr/bin/env python3
import json
import yaml
import argparse
import sys

def convert_json_to_yaml(input_file, output_file):
    try:
        with open(input_file, 'r') as f:
            data = json.load(f)
        
        with open(output_file, 'w') as f:
            yaml.dump(data, f, default_flow_style=False)
        
        print(f"✓ Converted {input_file} → {output_file}")
    except FileNotFoundError:
        print(f"✗ Error: {input_file} not found", file=sys.stderr)
        sys.exit(1)
    except json.JSONDecodeError as e:
        print(f"✗ Invalid JSON: {e}", file=sys.stderr)
        sys.exit(1)

if __name__ == "__main__":
    parser = argparse.ArgumentParser(description="Convert JSON to YAML")
    parser.add_argument("input", help="Input JSON file")
    parser.add_argument("output", help="Output YAML file")
    args = parser.parse_args()
    
    convert_json_to_yaml(args.input, args.output)

Verification:

$ python -m py_compile json2yaml.py
$ python json2yaml.py test.json test.yaml
✓ Converted test.json → test.yaml

Configuration

Set your Evolink API key:

export EVOLINK_API_KEY="your-key-here"

Default model: [REDACTED] (no configuration needed).

To use a different model:

export EVOLINK_MODEL="[REDACTED]"

Optional: Create .evocoderc.json in your project root:

{
  "defaultLanguage": "python",
  "autoTest": true,
  "verifyOnGenerate": true
}

Get your API key →

Security

Credentials & Network

EVOLINK_API_KEY is required to call the Evolink API for code generation. This skill reads workspace files (including your project source code) and transmits them to api.evolink.ai for analysis and code generation. Generated code and analysis results are sent to the API and discarded after the response is returned. No data is stored permanently. Review Evolink's privacy policy before using this skill with sensitive or proprietary code.

Required binaries: node (for CLI tool).

File Access & Data Transmission

  • Workspace Access: The skill reads files from your workspace directory (/root/.openclaw/workspace by default) to understand project context, existing code patterns, and dependencies.
  • External Transmission: File contents, code snippets, and analysis requests are sent to api.evolink.ai for processing. Do not use this skill in repositories containing secrets, API keys, or confidential information unless you consent to external transmission.
  • No Symlink Traversal: Paths are resolved via standard filesystem operations. No symlink traversal or path manipulation is performed.

Code Execution Risk

After generating or modifying code, the skill automatically runs syntax checks and optionally executes tests using language-specific tools (see verification commands table above). This means:

  • User code will be executed in your environment during verification
  • Untrusted code in your workspace may run if the skill attempts to verify it
  • Only use this skill in trusted repositories or sandboxed environments

No Placeholders

All generated code is production-ready. The skill never outputs TODO, pass, ..., or // implement this placeholders.

Persistence & Privilege

This skill does not modify other skills or system settings. No elevated or persistent privileges are requested.

Full source code is available on GitHub.

Links

安全使用建议
This skill can read your repository, send it to an external service (api.evolink.ai), and run syntax checks/tests (which will execute code). Before installing: - Verify the skill's provenance (who published the skill and the homepage/repository URL). The registry metadata in the submission omits required env vars/binaries but the bundled files reference EVOLINK_API_KEY, EVOLINK_MODEL, and node — ask the publisher to explain and fix that mismatch. - Do not use this skill on repositories containing secrets, credentials, or sensitive/confidential code unless you explicitly accept that entire workspace files may be transmitted to the external service. Remove or rotate secrets first. - If you must test it, run it in an isolated sandbox (throwaway VM or container) with no secrets and minimal network privileges. - Confirm whether the 'evocode' CLI actually exists in the published package or whether examples are aspirational; missing CLI artifacts are a red flag. - Consider alternatives that perform entirely local processing if you require stronger privacy guarantees. If the publisher can (a) update the registry metadata to declare required env vars and binaries, (b) document exactly what is transmitted and when, and (c) provide the expected CLI/source so there are no missing artifacts, the inconsistencies would be largely resolved and the skill would be easier to evaluate securely.
功能分析
Type: OpenClaw Skill Name: code-assist Version: 1.0.0 The skill provides code generation and analysis by transmitting workspace files to an external API (api.evolink.ai) and executing generated code locally for syntax verification and testing. While these high-risk behaviors are explicitly documented in SKILL.md and README.md, and the agent is instructed to obtain user consent before data transmission, the combination of source code exfiltration and automated local execution of untrusted code constitutes a significant security risk. The skill's functionality relies on the EVOLINK_API_KEY environment variable and the 'evocode' CLI tool.
能力评估
Purpose & Capability
The declared purpose (generate/review/debug/refactor code) aligns with instructions that read project files, run syntax checks/tests, and call an external service. However the registry metadata at the top of the submission lists no required env vars or binaries, while the bundled README/_meta.json advertise EVOLINK_API_KEY, EVOLINK_MODEL, and a node/evocode CLI — this mismatch is an inconsistency that should be resolved before trusting the skill.
Instruction Scope
SKILL.md explicitly instructs the agent to read workspace files (only with user consent) and to transmit them to api.evolink.ai for processing; it also instructs running syntax checks/tests which will execute user code. Asking for consent is good, but the workflow still enables exfiltration of repository contents and execution of potentially untrusted code. The instructions otherwise avoid scanning unrelated system paths, but transmitting whole workspace contents and executing tests is a meaningful data-exfiltration and code-execution risk.
Install Mechanism
There is no install spec (instruction-only), which is low risk. However package.json and package-lock.json are present and reference a CLI 'evocode' and dependency on node/commander, yet no bin/evocode file is included in the manifest. This is an inconsistency: examples assume a local CLI that the skill does not declare or install. No external downloads or archive extracts are present.
Credentials
The files (README and _meta.json) require EVOLINK_API_KEY and EVOLINK_MODEL and indicate network and shell access; requesting an API key for an external service is proportionate to offloading processing, but the registry's declared requirements (none) differ from the bundle. The need for an API key and network access is significant because it enables remote processing of your workspace; the skill should declare these requirements clearly in its published metadata.
Persistence & Privilege
The skill does not request always:true and does not request to modify other skills or system-wide settings. Meta advertises workspace file access, network access, and shell access — these are expected for a code-assistant but increase risk only when combined with autonomous invocation. Autonomous invocation is allowed by default (not flagged), but nothing in the bundle requests permanent system-level presence.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install code-assist
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /code-assist 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of Code Assistant for generating, reviewing, debugging, and refactoring code. - Supports multiple languages: Python, JavaScript/TypeScript, Go, Rust, Java, and C/C++. - Emphasizes real, runnable code (no placeholders) and minimal, user-approved file access. - Includes verification via syntax checks and optional unit tests after each change. - Requires explicit user consent before reading/transmitting files, with clear security guidance. - Command-line and conversational usage supported.
元数据
Slug code-assist
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Code Assistant 是什么?

Generate, review, debug, and refactor production-ready code in Python, JavaScript/TypeScript, Go, Rust, Java, and C/C++ with syntax checks and targeted edits. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 141 次。

如何安装 Code Assistant?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install code-assist」即可一键安装,无需额外配置。

Code Assistant 是免费的吗?

是的,Code Assistant 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Code Assistant 支持哪些平台?

Code Assistant 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Code Assistant?

由 EvolinkAI(@evolinkai)开发并维护,当前版本 v1.0.0。

💬 留言讨论