Skip to content
Skill Authoring
Skill

/semantic-slicing

Build local semantic review slices by combining clawpatch feature maps, deepsec threat candidates, visual review maps, and optional gitcrawl/discrawl evidence for repos such as openclaw/openclaw.

BOOST
From plugin
dotskills
11025 skills
Install
$ npx -y skills add vincentkoc/dotskills --skill semantic-slicing --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/semantic-slicing

Context preview

The summary Claude sees to decide when to auto-load this skill.

Build local semantic review slices by combining clawpatch feature maps, deepsec threat candidates, visual review maps, and optional gitcrawl/discrawl evidence for repos such as openclaw/openclaw.

SKILL.md

semantic-slicing.SKILL.md
name: semantic-slicing
description: Build local semantic review slices by combining clawpatch feature maps, deepsec threat candidates, visual review maps, and optional gitcrawl/discrawl evidence for repos such as openclaw/openclaw.
license: MIT
metadata:
  source: "https://github.com/vincentkoc/dotskills"

Semantic Slicing

Purpose

Turn a large repo into reviewable semantic slices with evidence. Use code shape, threat candidates, issue clusters, and support chatter together so review budget lands on the right parts of the system.

Default stance: map locally first, rank second, spend agent/security-review budget last.

When to use

  • Setting up or running `openclaw/clawpatch` against a target repo.
  • Setting up or running `vercel-labs/deepsec` against a target repo.
  • Producing a local visual map of feature slices, risky files, ownership clusters, or review targets.
  • Cross-checking code slices against `gitcrawl` issue/PR data or `discrawl` Discord/support data.
  • Planning a focused security, regression, architecture, or maintainer-review pass for a large repo.

Workflow

1. Reuse suitable tool state. Create task-owned temporary storage only when a tool requires files. 2. Read target repo instructions before scanning. For OpenClaw, read root `AGENTS.md`; subtree guides matter when reviewing a slice. 3. Verify tool setup:

  • `clawpatch`: clone/build `openclaw/clawpatch`, then run `clawpatch init`, `clawpatch map`, `clawpatch status`.
  • `deepsec`: clone/build `vercel-labs/deepsec`, scaffold a scratch workspace, then run `deepsec scan`.
  • `gitcrawl`: run `gitcrawl doctor --json`, then pull clusters/threads for related issue evidence.
  • `discrawl`: run `discrawl doctor --json` and `discrawl status --json`; use search/digest only when support chatter is relevant.

4. Run deterministic maps before AI review:

  • Clawpatch feature map for entrypoints/packages/config/test slices.
  • Deepsec regex scan for candidate threat surfaces.
  • Optional repo git overlay for CODEOWNERS routing, tracked files, code/test/doc shape, and recent churn.
  • Optional gitcrawl/discrawl lookups for historical pain around the same files, components, or symptoms.

5. Run `scripts/semantic-map.mjs` to merge the evidence into JSON on stdout.

  • Select bounded fields for agent inspection. Do not save intermediate output by default.
  • Use `--out <path>` only for a requested deliverable or required evidence. It retains HTML and JSON by default.
  • Use `--format html|json|both` to select output. A single format writes only the exact `--out` path.
  • Sparse mode is on by default and omits dotfile/config trees, docs, changelog files, and mobile app trees so core review stays focused.
  • Use `--no-sparse` or `--sparse false` for the full repo; use `--sparse-exclude <csv>` and `--sparse-include <csv>` to tune the filter.

6. When a visual board is requested, review it in product order:

  • review lanes first: semantic shape, ownership routing, development pressure, security pressure, issue pressure, support pressure,
  • focus controls second: lens and system filters that narrow the matrix without duplicating rows,
  • overall lens matrix third: the single slice-row table with comparable bars for semantic, ownership, development, security, issue, and support lenses,
  • agent handoff packet fourth: compact JSON for follow-up agents,
  • evidence tables last: raw-ish overlays for audit, not the primary reading path.

7. Choose a cost size before running AI stages:

  • `low`: deterministic maps only; no `deepsec process` or real `clawpatch review`.
  • `medium`: one to three explicit files/features with high-risk slugs, batch size 1, concurrency 1, and a turn cap.
  • `high`: broader AI processing or multiple feature reviews; requires an explicit budget/time decision.

8. Run AI only at the chosen size:

  • `clawpatch review --feature <id>` or a small `--limit`.
  • `deepsec process --files <csv>` or tightly scoped `--filter` plus `--only-slugs`.

9. Report retained paths, run IDs, counts, cost size, exclusions, and skipped expensive stages in chat. Remove only task-owned disposable scratch when no longer needed or in use. Preserve named deliverables and recovery evidence.

Flow

stateDiagram-v2
    [*] --> ReadScopeAndInstructions
    ReadScopeAndInstructions --> ReuseToolState
    ReuseToolState --> CreateTemporaryState: required by selected tool
    ReuseToolState --> DeterministicMaps: existing state sufficient
    CreateTemporaryState --> DeterministicMaps
    DeterministicMaps --> MergeEvidence
    MergeEvidence --> ReviewBoard: visual board requested
    MergeEvidence --> ChooseCostSize: inspect stdout map
    ReviewBoard --> ChooseCostSize
    state ChooseCostSize <<choice>>
    ChooseCostSize --> ReportResults: low, no AI processing
    ChooseCostSize --> TargetedAIReview: medium, explicit files and bounded controls
    ChooseCostSize --> BroadAIReview: high, explicit budget and time decision
    ChooseCostSize --> ReportBlocked: required budget or tool unavailable
    TargetedAIReview --> ReportResults
    BroadAIReview --> ReportResults
    ReportResults --> [*]
    ReportBlocked --> [*]

Inputs

  • `target_repo`: local checkout path and/or GitHub `owner/repo`.
  • `scratch_root`: optional task-owned temporary directory for tools that require physical state.
  • `out`: optional requested deliverable or required evidence path. Omit it for stdout.
  • `format`: `html`, `json`, or `both`. Default: `json` without `out`, otherwise `both`.
  • `clawpatch_repo`: local clone of `openclaw/clawpatch`, optional if `clawpatch` is already on PATH.
  • `deepsec_repo`: local clone of `vercel-labs/deepsec`, optional if `deepsec` is already on PATH.
  • `focus`: optional path prefixes, issue numbers, slugs, components, or channels to prioritize.
  • `sparse`: optional map filter, default `true`; excludes dotfile/config, docs/changelog, and mobile app paths unless configured.
Read more
Ships withdotskills

We are moving from "prompt as text" to skill as runtime module. Each skill acts like a lightweight, containerized application for AI work: a stable interface, opinionated workflow, and bundled resources that can be installed, versioned, tested, and reused

Get the whole plugin

Other skills on dotskills.