← 返回 Skills 市场
xueyetianya

Codepal

作者 bytesagain4 · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ✓ 安全检测通过
300
总下载
0
收藏
1
当前安装
7
版本数
在 OpenClaw 中安装
/install codepal
功能描述
Analyze codebases quickly with AI-powered intelligence and insights. Use when understanding unfamiliar repos, checking quality, or generating summaries.
使用说明 (SKILL.md)

CodePal

A full-featured devtools toolkit for checking, validating, generating, formatting, linting, explaining, converting, diffing, previewing, and fixing code — with built-in logging, search, statistics, and data export.

Commands

Command Description
check \x3Cinput> Check code and log the result; without args shows recent check entries
validate \x3Cinput> Validate code input; without args shows recent validate entries
generate \x3Cinput> Generate code from a description; without args shows recent entries
format \x3Cinput> Format code; without args shows recent format entries
lint \x3Cinput> Lint code for potential issues; without args shows recent lint entries
explain \x3Cinput> Explain a code snippet or concept; without args shows recent entries
convert \x3Cinput> Convert code between languages or formats; without args shows recent entries
template \x3Cinput> Create or apply code templates; without args shows recent entries
diff \x3Cinput> Log code differences; without args shows recent diff entries
preview \x3Cinput> Preview code output; without args shows recent preview entries
fix \x3Cinput> Record a code fix; without args shows recent fix entries
report \x3Cinput> Generate a code report; without args shows recent report entries
stats Show summary statistics across all log categories
export \x3Cfmt> Export all data (json, csv, or txt)
search \x3Cterm> Search across all logged entries for a keyword
recent Show the 20 most recent entries from the activity log
status Health check — version, data dir, total entries, disk usage, last activity
help Show all available commands
version Print version (v2.0.0)

Usage

codepal \x3Ccommand> [args]

Each command with arguments logs the input with a timestamp to a category-specific log file. Running a command with no arguments shows the most recent entries for that category.

Data Storage

  • Default location: ~/.local/share/codepal
  • Log files: Each command has its own log file (e.g., check.log, lint.log, generate.log)
  • History: All actions are also recorded in history.log with timestamps
  • Export formats: JSON (structured array of objects), CSV (type/time/value columns), plain text (grouped by category)

Requirements

  • Bash 4+ (strict mode: set -euo pipefail)
  • No external dependencies or API keys required
  • Standard Unix tools (date, wc, grep, du, head, tail)

When to Use

  1. Code review tracking — Use check, lint, and validate to log issues discovered during code review sessions, then search to find them later
  2. Learning unfamiliar codebases — Use explain to document your understanding of code patterns, then report to create summaries
  3. Code generation and templating — Use generate to log code generation prompts and template to track template usage
  4. Diffing and debugging — Use diff to record code changes and fix to document bug fixes, creating an audit trail
  5. Team metrics and reporting — Use stats for activity summaries, export json to feed into dashboards, and recent for quick status checks

Examples

# Check a function
codepal check "validateEmail() is missing null check"

# Generate a code snippet description
codepal generate "React hook for debounced search"

# Lint a file
codepal lint "server.js:42 — unused variable 'config'"

# Explain a concept
codepal explain "JavaScript closure in event handler"

# Record a diff
codepal diff "Refactored auth middleware to use async/await"

# Fix a bug
codepal fix "Off-by-one error in pagination logic"

# View aggregate statistics
codepal stats

# Export all logged data as CSV
codepal export csv

# Search for entries about authentication
codepal search "auth"

# Show recent activity
codepal recent

# Health check
codepal status

Output

  • Command results print to stdout
  • Entries are timestamped (YYYY-MM-DD HH:MM) and persisted to ~/.local/share/codepal/\x3Ccategory>.log
  • Export files are written to ~/.local/share/codepal/export.\x3Cfmt> with a byte count confirmation

Powered by BytesAgain | bytesagain.com | [email protected]

安全使用建议
This skill appears to be a straightforward local devtools logger and is coherent with its description. Before installing, note: (1) Everything you pass to codepal (prompts, code snippets, filenames) is stored in ~/ .local/share/codepal and will be exportable — avoid logging secrets or private keys. (2) There are minor bugs/inconsistencies in the script's history/export formatting; they may affect outputs but aren't malicious. (3) The skill does not perform network calls or request credentials, so its primary privacy risk is local disk persistence. If you plan to use it in sensitive projects, review or sandbox the script and consider storing the data directory on encrypted storage or not logging sensitive inputs.
功能分析
Type: OpenClaw Skill Name: codepal Version: 2.0.1 The CodePal skill is a local activity logger that records user-provided strings into category-specific log files within the user's local data directory. While the documentation in SKILL.md describes it as an 'AI-powered intelligence' tool for code analysis, the actual implementation in scripts/script.sh is a simple Bash script that appends text to logs and provides basic search/export functionality. It lacks any network capabilities, sensitive data access, or execution of untrusted input, making it safe for use.
能力评估
Purpose & Capability
Name/description claim a local code analysis/devtools helper. The included script implements command logging, search, export, stats, and status under ~/.local/share/codepal — functionality aligns with the stated purpose and requires only standard Unix tools.
Instruction Scope
SKILL.md and the script confine operations to local files under the user's home data directory and standard Unix utilities. They do persist all user-provided inputs (snippets, prompts, logs) to disk, so sensitive code/credentials pasted into commands will be stored locally. There are minor implementation inconsistencies (e.g., history.log timestamp format vs. other commands expecting '|' separators) that affect correctness but not safety.
Install Mechanism
No install spec — instruction-only with one helper script. No downloads, third-party package installs, or external URLs executed at runtime.
Credentials
No environment variables, API keys, or external credentials are requested or required. The script uses HOME implicitly to build ~/.local/share/codepal which is expected for a local tool.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide settings. It creates and writes logs under the user's home directory (normal for this tool) and can export those logs to files — persistent data is local and limited to the skill's own data directory.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install codepal
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /codepal 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.1
update
v2.0.0
v2.5 standard: Use-when desc, homepage, source, security fix
v1.0.4
retry-fix-token
v1.0.3
old template -> domain-specific v2.0.0
v1.0.2
Quality upgrade
v1.0.1
Quality upgrade: custom functionality
v1.0.0
Initial release
元数据
Slug codepal
版本 2.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 7
常见问题

Codepal 是什么?

Analyze codebases quickly with AI-powered intelligence and insights. Use when understanding unfamiliar repos, checking quality, or generating summaries. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 300 次。

如何安装 Codepal?

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

Codepal 是免费的吗?

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

Codepal 支持哪些平台?

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

谁开发了 Codepal?

由 bytesagain4(@xueyetianya)开发并维护,当前版本 v2.0.1。

💬 留言讨论