← Back to Skills Marketplace
68
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install nm-pensive-code-refinement
Description
Improve code quality: duplication, efficiency, clean code, architectural fit, and error handling
Usage Guidance
This skill appears to do what it says (repo-wide static heuristics and suggested refactors), but there are small mismatches you should be aware of before installing:
- The SKILL.md expects standard shell tools (find/grep/sed/awk), python3, and may call the GitHub CLI (gh) when run against a PR — yet the registry lists no required binaries or credentials. If you plan to use PR integration, ensure any GitHub token supplied to the agent has the minimum scopes you accept and be aware the skill will read repo files.
- The skill declares required config paths from other Night Market plugins (including imbue:proof-of-work). Confirm what data those config entries contain and whether you are comfortable allowing this skill access to them.
- Because the skill searches the repository broadly, it will read source and script files. That is expected for a code-refinement tool, but review what scripts (e.g., plugins/conserve/scripts/detect_duplicates.py) it may attempt to execute or import in your environment.
What would increase my confidence: explicit declared required binaries (e.g., python3, gh) and an explanation of exactly what is stored/used in the required config paths (especially imbue:proof-of-work). If the author documents which external commands are optional and what credential scopes are needed for PR analysis, the remaining concerns would be resolved.
Capability Analysis
Type: OpenClaw Skill
Name: nm-pensive-code-refinement
Version: 1.0.0
The skill bundle provides a framework for automated code refactoring and quality analysis using shell-based workflows. Several modules, including clean-code-checks.md and architectural-fit.md, execute shell commands (grep, sed, awk) on file paths and content derived from the local environment; some of these commands use unquoted variables, creating a potential risk for shell injection if the codebase contains maliciously crafted filenames. Additionally, duplication-analysis.md attempts to execute an external script (detect_duplicates.py) from a separate plugin. While these capabilities are plausibly required for the stated purpose, the use of brittle shell patterns and external dependencies warrants a suspicious classification.
Capability Assessment
Purpose & Capability
Name/description (improving duplication, efficiency, clean code, architectural fit, error handling) align with the modules and the commands shown; the requested config paths (shared patterns, safety-critical patterns, proof-of-work) are plausibly related to evidence capture and safety checks used by a code-review/refinement skill.
Instruction Scope
SKILL.md instructs the agent to scan the repository (find/grep/sed/awk/xargs/wc), run Python helpers, and optionally call 'gh pr diff' for PR-scoped analysis. Reading repository files is expected for a code-refinement skill, but the instructions are broad (search whole tree excluding common dirs) and reference utilities and scripts that are not listed as required binaries. The doc also references invoking other plugins/skills (archetypes, conserve, imbue) which may cause the agent to read cross-plugin files or try to use those plugins if available.
Install Mechanism
Instruction-only skill with no install spec or archive downloads. Nothing will be written to disk by an installer — lower install risk.
Credentials
Registry metadata lists no required environment variables or credentials, but SKILL.md expects runtime tools and integrations (python3, grep/sed/awk, and optionally the GitHub CLI 'gh' for PR operations). The skill declares required config paths across other Night Market plugins (night-market.pensive:shared, night-market.pensive:safety-critical-patterns, night-market.imbue:proof-of-work). Those config requirements are plausible for evidence capture but broaden the skill's access to cross-plugin configuration/data; the GH CLI/PR use also implies access to GitHub credentials that are not declared.
Persistence & Privilege
No install, no always:true. The skill can be invoked autonomously by default (platform default) but it does not request permanent presence or attempt to modify other skills' configs in the provided files.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install nm-pensive-code-refinement - After installation, invoke the skill by name or use
/nm-pensive-code-refinement - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of the code-refinement skill, focused on improving code quality across six dimensions: duplication, efficiency, clean code, architectural fit, anti-slop, and error handling.
- Provides a tiered analysis workflow (Quick, Targeted, Deep) to match different code review needs.
- Supports progressive loading of analysis modules for focused or comprehensive reviews.
- Integrates with related plugins for enhanced proof-of-work, code quality, and architectural analysis, with graceful fallback when unavailable.
- Includes step-by-step workflow and required TodoWrite items for effective code refinement and documentation.
Metadata
Frequently Asked Questions
What is Nm Pensive Code Refinement?
Improve code quality: duplication, efficiency, clean code, architectural fit, and error handling. It is an AI Agent Skill for Claude Code / OpenClaw, with 68 downloads so far.
How do I install Nm Pensive Code Refinement?
Run "/install nm-pensive-code-refinement" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Nm Pensive Code Refinement free?
Yes, Nm Pensive Code Refinement is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Nm Pensive Code Refinement support?
Nm Pensive Code Refinement is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Nm Pensive Code Refinement?
It is built and maintained by athola (@athola); the current version is v1.0.0.
More Skills