Skip to content
Back to skills

Hooks Post Edit

ASecurity

Record an editing outcome in the local feedback log.

  • 21 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 10, 2026
ai-agentsjavascriptjavabashapiperformance

Works with

  • claude code
  • api
  • mcp

Security analysis

A100/100

Scanned October 1, 2026

npx -y skills add monoes/monomind --skill hooks-post-edit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hooks Post Edit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hooks Post Edit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/monoes-hooks-post-edit/badge)](https://www.skillsdirectory.com/skills/monoes-hooks-post-edit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: hooks-post-edit
description: Record an editing outcome in the local feedback log.
type: flow
---

# hooks post-edit

Record an editing outcome in the local feedback log.

## Usage

```bash
npx monomind hooks post-edit [options]
```

## Options

| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
| `--file` | `-f` | string | `unknown` | File path that was edited |
| `--success` | `-s` | boolean | `true` | Whether the edit succeeded |
| `--outcome` | `-o` | string | — | Outcome description |
| `--metrics` | `-m` | string | — | Performance metrics, e.g. `"time:500ms,quality:0.95"` |
| `--format` | — | string | — | Output format: `json` |

## Examples

```bash
# Record successful edit
npx monomind hooks post-edit --file src/utils.ts --success true

# Record failed edit with reason
npx monomind hooks post-edit -f src/api.ts --success false -o "Type error in return type"

# With performance metrics
npx monomind hooks post-edit -f src/auth.ts --success true -m "time:200ms,quality:0.9"

# JSON output
npx monomind hooks post-edit -f src/utils.ts --format json
```

## Output

- Whether the outcome was recorded (the feedback write), and which store took it

## Claude Code Integration

Typically fired automatically via `settings.json`:

```json
{
  "hooks": {
    "PostToolUse": [{
      "matcher": "^(Write|Edit|MultiEdit)$",
      "hooks": [{
        "type": "command",
        "command": "npx monomind hooks post-edit --file '${tool.params.file_path}' --success true"
      }]
    }]
  }
}
```

## MCP Tool

```javascript
mcp__monomind__hooks_post-edit({
  filePath: "src/utils.ts",
  success: true,
  outcome: "Added error handling",
  metrics: { time: 200, quality: 0.9 },
  timestamp: Date.now()
})
```

## See Also

- `hooks pre-edit` — get context before editing
- `hooks metrics` — view recorded routing/outcome metrics

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…