Merge upstream origin/main with local fork additions preserved
Accept upstream's ce-review pipeline rewrite (6-stage persona-based architecture with structured JSON, confidence gating, three execution modes). Retire 4 overlapping review agents (security-sentinel, performance-oracle, data-migration-expert, data-integrity-guardian) replaced by upstream equivalents. Add 5 local review agents as conditional personas in the persona catalog (kieran-python, tiangolo- fastapi, kieran-typescript, julik-frontend-races, architecture- strategist). Accept upstream skill renames (file-todos→todo-create, resolve_todo_ parallel→todo-resolve), port local Assessment and worktree constraint additions to new files. Merge best-practices-researcher with upstream platform-agnostic discovery + local FastAPI mappings. Remove Rails/Ruby skills (dhh-rails-style, andrew-kane-gem-writer, dspy-ruby) per fork's FastAPI pivot. Component counts: 36 agents, 48 skills, 7 commands. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
45
plugins/compound-engineering/skills/proof-push/SKILL.md
Normal file
45
plugins/compound-engineering/skills/proof-push/SKILL.md
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
name: proof-push
|
||||
description: This skill should be used when the user wants to push a markdown document to a running Proof server instance. It accepts a file path as an argument, posts the markdown content to the Proof API, and returns the document slug and URL. Triggers on "push to proof", "proof push", "open in proof", "send to proof", or any request to render markdown in Proof.
|
||||
---
|
||||
|
||||
# Proof Push
|
||||
|
||||
Push a local markdown file to a running Proof server and open it in the browser.
|
||||
|
||||
## Usage
|
||||
|
||||
Accept a markdown file path as the argument. If no path is provided, ask for one.
|
||||
|
||||
### Execution
|
||||
|
||||
Run the bundled script to post the document:
|
||||
|
||||
```bash
|
||||
bash scripts/proof_push.sh <file-path> [server-url]
|
||||
```
|
||||
|
||||
- `file-path` — absolute or relative path to a `.md` file (required)
|
||||
- `server-url` — Proof server URL, defaults to `http://localhost:4000`
|
||||
|
||||
The script:
|
||||
1. Reads the file content
|
||||
2. POSTs to `/share/markdown` as JSON with `{markdown, title}`
|
||||
3. Returns the slug, base URL, and editor URL with access token
|
||||
|
||||
### Output
|
||||
|
||||
Report the returned slug and URLs to the user. The editor URL (with token) gives full edit access.
|
||||
|
||||
### Error Handling
|
||||
|
||||
If the script fails, check:
|
||||
- Is the Proof server running? (`curl http://localhost:4000`)
|
||||
- Does the file exist and contain non-empty markdown?
|
||||
- Is `jq` installed? (required for JSON construction)
|
||||
|
||||
## Resources
|
||||
|
||||
### scripts/
|
||||
|
||||
- `proof_push.sh` — Shell script that posts markdown to Proof's `/share/markdown` endpoint and returns the document slug and URLs.
|
||||
34
plugins/compound-engineering/skills/proof-push/scripts/proof_push.sh
Executable file
34
plugins/compound-engineering/skills/proof-push/scripts/proof_push.sh
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env bash
|
||||
# Push a markdown file to a running Proof server and return the document URL.
|
||||
# Usage: proof_push.sh <path-to-markdown> [server-url]
|
||||
set -euo pipefail
|
||||
|
||||
FILE="${1:?Usage: proof_push.sh <markdown-file> [server-url]}"
|
||||
SERVER="${2:-http://localhost:4000}"
|
||||
UI_URL="${3:-http://localhost:3000}"
|
||||
|
||||
if [[ ! -f "$FILE" ]]; then
|
||||
echo "error: file not found: $FILE" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TITLE=$(basename "$FILE" .md)
|
||||
|
||||
RESPONSE=$(curl -s -X POST "${SERVER}/share/markdown" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "$(jq -n --arg md "$(cat "$FILE")" --arg title "$TITLE" '{markdown: $md, title: $title}')")
|
||||
|
||||
SLUG=$(echo "$RESPONSE" | jq -r '.slug // empty')
|
||||
ERROR=$(echo "$RESPONSE" | jq -r '.error // empty')
|
||||
|
||||
if [[ -z "$SLUG" ]]; then
|
||||
echo "error: failed to create document${ERROR:+: $ERROR}" >&2
|
||||
echo "$RESPONSE" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TOKEN_PATH=$(echo "$RESPONSE" | jq -r '.tokenPath // empty')
|
||||
|
||||
echo "slug: $SLUG"
|
||||
echo "url: ${UI_URL}/d/${SLUG}"
|
||||
[[ -n "$TOKEN_PATH" ]] && echo "editor-url: ${UI_URL}${TOKEN_PATH}"
|
||||
Reference in New Issue
Block a user