hooks post-edit command (monomind)
Scanned 9/10/2026
Install to Claude Code
npx -y skills add monoes/monomind --skill hooks-post-edit --agent claude-codeInstalls 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 automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/monoes-hooks-post-edit)More formats (shields.io, HTML) on the badges page.
---
description: hooks post-edit command (monomind)
type: flow
name: hooks-post-edit
---
# hooks post-edit
Record editing outcome for neural pattern learning.
## 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
- **Learning updates** — patterns updated, confidence adjustments, new patterns discovered
## 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 learning metrics
Is this your skill, or is something wrong with this listing? . Author removals are honored within 72 hours.
No comments yet. Be the first to comment!