polish-claw-project
关于
This Claude Skill provides a structured 9-step workflow for contributing to OpenClaw ecosystem projects. It focuses on code auditing, false positive prevention, and cross-referencing findings to select high-impact fixes. Use it to systematically explore codebases and create pull requests that adhere to project conventions.
快速安装
Claude Code
推荐npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/polish-claw-project在 Claude Code 中复制并粘贴此命令以安装该技能
技能文档
Polish Claw Project
Structured workflow for contributing to OpenClaw ecosystem projects. The novel value is in Steps 5-7: parallel audit, false positive prevention, and cross-referencing findings against open issues to select high-impact contributions. Mechanical steps (fork, PR creation) delegate to existing skills.
When to Use
- Contributing to NVIDIA/OpenClaw, NVIDIA/NemoClaw, NVIDIA/NanoClaw, or similar Claw ecosystem repos
- First-time contributions to an unfamiliar open-source project with security-sensitive architecture
- When you want a repeatable, auditable contribution workflow rather than ad-hoc fixes
- After identifying a Claw project that accepts external contributions (check CONTRIBUTING.md)
Inputs
- Required:
repo_url— GitHub URL of the target Claw project (e.g.,https://github.com/NVIDIA/NemoClaw) - Optional:
contribution_count— Number of contributions to aim for (default: 1-3)focus— Preferred contribution type:security,tests,docs,bugs,any(default:any)fork_org— GitHub org/user to fork into (default: authenticated user)
Procedure
Step 1: Identify and Verify Target
Confirm the project accepts external contributions and is actively maintained.
- Open the repository URL and read
CONTRIBUTING.md,CODE_OF_CONDUCT.md, andLICENSE - Check recent commit activity (last 30 days) and open PR merge rate
- Verify the project uses a permissive or contribution-friendly license
- Read
SECURITY.mdor security policy if present — note responsible disclosure rules - Identify the primary language, test framework, and CI system
Got: CONTRIBUTING.md exists, commits within last 30 days, clear contribution guidelines.
If fail: If no CONTRIBUTING.md or no recent activity, document why and stop — stale projects rarely merge external PRs.
Step 2: Fork and Clone
Create a working copy of the repository.
- Fork:
gh repo fork <repo_url> --clone - Set upstream remote:
git remote add upstream <repo_url> - Verify:
git remote -vshows bothorigin(fork) andupstream - Sync:
git fetch upstream && git checkout main && git merge upstream/main
Got: Local clone with both remotes configured and up to date.
If fail: If fork fails, check GitHub authentication (gh auth status). If clone is slow, try --depth=1 for initial exploration.
Step 3: Explore Codebase
Build a mental model of the project architecture.
- Read
README.mdfor architecture overview and project goals - Identify entry points, core modules, and public API surface
- Map the test structure: where tests live, what framework, coverage level
- Note code style conventions: linter config, naming patterns, import style
- Check for Docker/container setup, CI configuration, and deployment patterns
Got: Clear understanding of project structure, conventions, and where contributions would fit.
If fail: If architecture is unclear, focus on a specific subsystem rather than the whole project.
Step 4: Read Open Issues
Survey existing issues to understand project needs and avoid duplicate work.
- List open issues:
gh issue list --state open --limit 50 - Categorize by type: bugs, features, docs, security, good-first-issue
- Note issues labeled
help wanted,good first issue, orhacktoberfest - Check for stale issues (>90 days open, no recent comments) — these may be abandoned
- Read any linked PRs to understand attempted solutions
Got: Categorized list of unclaimed issues with type labels.
If fail: If no open issues exist, proceed to Step 5 — audit may uncover unlisted improvements.
Step 5: Parallel Audit
Run security and code quality audits in parallel. This is where novel findings emerge.
- Run
security-audit-codebaseskill against the project root - Simultaneously run
review-codebaseskill with scopequality - Critical: verify each finding against the project's threat model and architecture
- A "hardcoded secret" in a sandbox bootstrap script is not a vulnerability
- A missing input validation on an internal-only function is low severity
- A dependency flagged as vulnerable may already be mitigated by the project's architecture
- Rate verified findings: CRITICAL, HIGH, MEDIUM, LOW
- Document false positives with reasoning — they inform Common Pitfalls for future runs
Got: List of verified findings with severity ratings and false positive annotations.
If fail: If no findings emerge, shift focus to test coverage gaps, documentation improvements, or developer experience enhancements.
Step 6: Cross-Reference Findings
Map verified audit findings to open issues — the core judgment step.
- For each verified finding, search open issues for related discussions
- Categorize each finding as:
- Matches open issue — link the finding to the issue
- New finding — no existing issue covers this
- Already fixed in PR — check open PRs for in-progress fixes
- Prioritize findings that match existing issues (highest merge probability)
- For new findings, assess whether the maintainers would welcome the fix based on project priorities
Got: Prioritized list with finding-to-issue mapping and merge probability assessment.
If fail: If all findings are already addressed, return to Step 4 and look for documentation, test, or developer experience contributions.
Step 7: Select Contributions
Pick 1-3 contributions based on impact, effort, and expertise.
- Score each candidate on:
- Impact: How much does this improve the project? (security > bugs > tests > docs)
- Effort: Can this be done well in a focused session? (prefer small, complete PRs)
- Expertise: Does the contributor have domain knowledge for this fix?
- Merge probability: Does this match stated project priorities?
- Select the top candidates (default: 1-3)
- For each, define: branch name, scope boundary, acceptance criteria, test plan
Got: 1-3 selected contributions with clear scope and acceptance criteria.
If fail: If no contributions score well, consider filing well-written issues instead of PRs.
Step 8: Implement
Create a branch per contribution and implement the fix.
- For each contribution:
git checkout -b fix/<description> - Follow project conventions exactly (linter, naming, import style)
- Add or update tests covering the change
- Run the project's test suite: verify all tests pass
- Run the project's linter: verify no new warnings
- Keep each PR focused — one logical change per branch
Got: Clean implementation with passing tests and no linter warnings.
If fail: If tests fail on pre-existing issues, document them and ensure the PR doesn't introduce new failures.
Step 9: Create Pull Requests
Submit contributions following the project's CONTRIBUTING.md.
- Push branch:
git push origin fix/<description> - Create PR using the
create-pull-requestskill - Reference the related issue in the PR body (e.g., "Fixes #123")
- Follow the project's PR template if one exists
- Be responsive to reviewer feedback — iterate quickly
Got: PRs created, linked to issues, following project conventions.
If fail: If PR creation fails, check branch protection rules and contributor license agreements.
Validation
- All selected contributions have been implemented and submitted as PRs
- Each PR references the related issue (if one exists)
- All project tests pass on each PR branch
- No false positive findings were submitted as real issues
- PR descriptions follow the project's CONTRIBUTING.md template
Pitfalls
- False positive overclaim: Claw projects use sandbox architectures — a "vulnerability" inside a sandboxed environment may be by design. Always verify against the project's threat model before reporting.
- Digest/signature chain disruption: Claw projects often use verification chains for model integrity. Changes must preserve these chains or the PR will be rejected.
- Convention mismatch: Claw projects enforce strict style. Run the project's own linter, not a generic one. Match import ordering, docstring format, and test patterns exactly.
- Scope creep: 3 focused PRs merge faster than 1 sprawling PR. Keep each contribution atomic.
- Stale fork: Always sync with upstream before starting work (
git fetch upstream && git merge upstream/main).
Related Skills
- security-audit-codebase — used in Step 5 for security findings
- review-codebase — used in Step 5 for code quality review
- create-pull-request — used in Step 9 for PR creation
- create-github-issues — for filing issues from findings not addressed as PRs
- manage-git-branches — branch management during implementation
- commit-changes — commit workflow
GitHub 仓库
相关推荐技能
content-collections
元Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。
polymarket
元这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。
creating-opencode-plugins
元该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。
sglang
元SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。
