capture

Solid

Save a memory to Wenlan in flow. Active capture verb — use proactively when the user states a preference, makes a decision, corrects you, or shares a durable fact. Invoked as `/capture <content>`.

AI & Automation 64 stars 6 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 87/100

Stars 20%
60
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# /capture Capture a single memory in the moment. Active verb: agent captures the moment of insight, like a photograph. ## Argument parsing The `/capture` skill accepts one optional inline token of the form `space:<name>` anywhere in the argument string. Extract it before treating the rest as content: raw_args="<the full argument string passed to /capture>" space_arg="$(printf '%s\n' "$raw_args" | grep -oE 'space:[A-Za-z0-9_-]+' | head -1 | cut -d: -f2)" content="$(printf '%s\n' "$raw_args" | sed -E 's/[[:space:]]*space:[A-Za-z0-9_-]+[[:space:]]*/ /g' | sed -E 's/^[[:space:]]+|[[:space:]]+$//g')" If `space_arg` is non-empty, pass it to the resolver as `--arg "$space_arg"`. ## Resolve the active space Call the bundled resolver: resolved="$("$CLAUDE_PLUGIN_ROOT/bin/resolve-space.sh" --cwd "$PWD" \ ${space_arg:+--arg "$space_arg"} 2>/dev/null)" space="$(printf '%s\n' "$resolved" | cut -f1)" source_layer="$(printf '%s\n' "$resolved" | cut -f2)" Pass `space="$space"` to the `capture` MCP tool only when `space` is non-empty. Before every capture, also print: Resolved space: <space> (from <source-layer>) If `space` is empty, print: Resolved space: none (unscoped) This line reports the proposed client context. After capture, relay the tool's returned `space`, `space_source`, and `write_outcome`; those fields describe what the daemon actually persisted and are authoritative. Unknown spaces are not auto-created. Register one through...

Details

Author
7xuanlu
Repository
7xuanlu/wenlan
Created
4 months ago
Last Updated
today
Language
Rust
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category