← Back to Skills Marketplace
hankmint

Codemend

by hankmint · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
90
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install codemend
Description
Monitor, report, and get AI-generated fixes for JavaScript and TypeScript production errors with automated analysis and pull request integration.
README (SKILL.md)

Codemend AI Skill

Codemend captures production JavaScript/TypeScript errors, analyzes them with AI, and generates fixes — either as GitHub PRs or paste-back prompts for AI coding tools like Lovable, Replit, and Cursor.

Tools

report_error

Report a production error to Codemend. The error will be analyzed by AI within seconds.

curl -X POST "https://codemend.ai/api/errors/ingest" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "'$CODEMEND_API_KEY'",
    "message": "TypeError: Cannot read properties of undefined (reading '\''map'\'')",
    "stack": "TypeError: Cannot read properties of undefined\
    at renderList (src/components/List.tsx:15:23)",
    "source_url": "https://myapp.com/dashboard",
    "source_type": "openclaw"
  }'

Response:

{ "status": "queued", "error_id": "uuid-here" }

get_fix

Get the AI-generated fix for a reported error. Includes explanation, root cause, confidence score, and a fix prompt you can paste into your AI coding tool.

curl -s "https://codemend.ai/api/errors/{ERROR_ID}/fix" \
  -H "x-api-key: $CODEMEND_API_KEY"

Response:

{
  "error": {
    "id": "uuid",
    "status": "analyzed",
    "message": "TypeError: Cannot read properties of undefined",
    "stack_trace": "...",
    "source_url": "https://myapp.com/dashboard"
  },
  "fix": {
    "id": "uuid",
    "explanation": "The map() call fails because data is undefined on first render",
    "root_cause": "Missing null check before array operation",
    "confidence": 0.92,
    "fix_prompt": "In src/components/List.tsx, add an early return if data is undefined...",
    "pr_url": "https://github.com/user/repo/pull/42"
  },
  "dashboard_url": "https://codemend.ai/errors/uuid"
}

If the error is still being analyzed, the fix field will be null. Poll with check_status first.

check_status

Check if an error has been analyzed yet.

curl -s "https://codemend.ai/api/errors/{ERROR_ID}/status" \
  -H "x-api-key: $CODEMEND_API_KEY"

Response:

{
  "status": "analyzed",
  "message": "TypeError: Cannot read properties of undefined",
  "has_fix": true,
  "fix_id": "uuid-here",
  "dashboard_url": "https://codemend.ai/dashboard/errors/uuid"
}

Statuses: newanalyzinganalyzed / fix_applied / ignored

list_errors

List recent errors for this project.

curl -s "https://codemend.ai/api/errors?limit=10&status=analyzed" \
  -H "x-api-key: $CODEMEND_API_KEY"

Response:

{
  "errors": [
    {
      "id": "uuid",
      "status": "analyzed",
      "message": "TypeError: Cannot read properties of undefined",
      "source_type": "openclaw",
      "has_fix": true,
      "fix_id": "uuid",
      "created_at": "2026-03-11T12:00:00Z"
    }
  ],
  "total": 42
}

Setup in a Project

Browser (React, Next.js, Vue, etc.)

Add to your HTML \x3Chead>:

\x3Cscript src="https://codemend.ai/s.js" data-key="YOUR_API_KEY">\x3C/script>

Or if using an AI coding tool (Lovable, Replit, Bolt, etc.), paste this prompt:

Add this error monitoring script to my app. Put it in the \x3Chead> section of index.html: \x3Cscript src="https://codemend.ai/s.js" data-key="YOUR_API_KEY">\x3C/script>

Node.js / Backend

npm install codemend
const codemend = require('codemend');
codemend.init({ apiKey: process.env.CODEMEND_API_KEY });
codemend.setupProcessHandlers();

Express

const codemend = require('codemend');
codemend.init({ apiKey: process.env.CODEMEND_API_KEY });
app.use(codemend.expressErrorHandler());

React Native

import codemend from 'codemend/react-native';
codemend.init({ apiKey: 'YOUR_API_KEY' });
codemend.setupErrorHandler();

Typical Workflow

  1. Set up error monitoring in your project (above)
  2. Errors are automatically captured and sent to Codemend
  3. Use list_errors to see recent errors
  4. Use get_fix to get the AI-generated fix
  5. Apply the fix: paste the fix_prompt into your AI tool, or review the PR on GitHub
Usage Guidance
Do not install or provide API keys until the maintainers clarify the inconsistency. Specific steps: - Ask the publisher which service is authoritative (codemend.ai or autohealai.com) and request corrected SKILL.md/README and scripts. - Do not provide your CODEMEND_API_KEY (or any secret) to this skill until the domain and env var names are reconciled. - Inspect any remote script (https://codemend.ai/s.js) and the npm package 'codemend' on the public registry before embedding in production. - If you already supplied keys or used the helper script, rotate those keys and audit outbound requests to confirm where data was sent. - Prefer installing in a sandboxed environment first and run network monitoring (or code review) to confirm traffic goes to the expected codemend.ai domain. The inconsistency is likely accidental but could lead to credentials or error data being sent to an unrelated service; treat it as suspicious until resolved.
Capability Analysis
Type: OpenClaw Skill Name: codemend Version: 1.1.0 The skill bundle exhibits significant inconsistencies between its components, notably a domain and environment variable mismatch. While SKILL.md and README.md reference 'codemend.ai' and 'CODEMEND_API_KEY', the helper script 'scripts/check-errors.sh' targets 'autohealai.com' and requires 'AUTOHEAL_API_KEY'. Additionally, the _meta.json file contains a future-dated timestamp (2026). These discrepancies, combined with instructions for the AI agent to inject external scripts (https://codemend.ai/s.js) into a project's source code, create a risk of supply chain confusion or data redirection to unintended endpoints.
Capability Assessment
Purpose & Capability
The SKILL.md describes Codemend (codemend.ai) and requires CODEMEND_API_KEY; README and SKILL.md instruct adding codemend.ai scripts and API calls. However the shipped helper script (scripts/check-errors.sh) calls https://autohealai.com and requires AUTOHEAL_API_KEY, and README suggests keys prefixed ah_—all inconsistent with the stated Codemend purpose. This mismatch indicates copy-paste or packaging errors and raises the possibility the included script would send data/keys to an unrelated service.
Instruction Scope
The SKILL.md's runtime instructions are scoped to Codemend API endpoints (codemend.ai) and ask for a CODEMEND_API_KEY; they do not reference the packaged check-errors.sh. The packaged script, though documented in README, performs network calls to autohealai.com and insists on an undeclared env var (AUTOHEAL_API_KEY). The presence of an outside-networking script that is not aligned with the documented service is scope creep and a red flag.
Install Mechanism
No installation spec (instruction-only) — low-risk from installer perspective. The instructions do reference downloading a client script from codemend.ai and an npm package 'codemend', which is expected for an error-monitoring integration. The main risk is the included helper script making outbound requests to a different domain; there is no automated install that writes files on its own.
Credentials
Declared runtime in SKILL.md requires CODEMEND_API_KEY, but the bundled script requires AUTOHEAL_API_KEY (undeclared) and README suggests an 'ah_' key format. The mismatch means a user might provide credentials intended for one service while a bundled script would accept or require different credentials and send them to a different domain — disproportionate and potentially dangerous.
Persistence & Privilege
The skill does not request elevated platform privileges (always:false). It suggests adding a monitoring script to your app or npm package, which is normal for this category and does not itself grant the skill system-level persistence. Still, adding third-party monitoring code to production apps is an action with runtime impact — verify source before embedding.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install codemend
  3. After installation, invoke the skill by name or use /codemend
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
- Added new "check_status" tool for tracking error analysis progress. - Expanded tool and API documentation with detailed usage examples and JSON schema. - Clarified setup instructions for different environments (Browser, Node.js, Express, React Native). - Improved workflow guidance for reporting errors and applying AI-generated fixes. - Updated response examples and explanations for all endpoints.
Metadata
Slug codemend
Version 1.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Codemend?

Monitor, report, and get AI-generated fixes for JavaScript and TypeScript production errors with automated analysis and pull request integration. It is an AI Agent Skill for Claude Code / OpenClaw, with 90 downloads so far.

How do I install Codemend?

Run "/install codemend" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Codemend free?

Yes, Codemend is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Codemend support?

Codemend is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Codemend?

It is built and maintained by hankmint (@hankmint); the current version is v1.1.0.

💬 Comments