semantic-slicing

Semantic slicing: build local semantic review slices for repositories like openclaw/openclaw by combining clawpatch feature maps, deepsec threat candidates, visual review graphs, and optional gitcrawl/discrawl evidence.

Last repository push
GitHub Stars
111
Forks
9
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "semantic-slicing" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-09d0d7ba6453321573b473a2f7c827fc709fe30b3fe6fd02bbfd952da7ff4be1. Verify the upstream source and version against https://github.com/vincentkoc/dotskills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Semantic slicing: build local semantic review slices for repositories like openclaw/openclaw by combining clawpatch feature maps, deepsec threat candidates, visual review graphs, and optional gitcrawl/discrawl evidence.

0 Downloads

Introduction source: third_party · vincentkoc · 0.0.1 Reference

SkillPi interpretation

Tasks
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.
Audience
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.
Inputs and outputs
`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/chang
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
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.
  • cost_size: low, medium, or high; default low.
  • budget_mode: map-only, targeted-ai, or full-ai; default follows cost_size.

Outputs

  • Tool setup status and blocker list.
  • Clawpatch feature counts and contamination checks.
  • Deepsec scan run ID, candidate counts, top slugs, and top files.
  • Optional repo overlays from --repo: CODEOWNERS routing, tracked files, code/test/doc shape, 90-day churn, and test-gap pressure.
  • Optional gitcrawl cluster/thread evidence and discrawl support evidence.
  • Machine-readable semantic map on stdout by default. Retained HTML and JSON only when requested.
  • Clean semantic buckets, ownership overlay, development overlay, security overlay, issue overlay, support overlay, and normalized queues.
  • Human review lanes, focus controls, agent handoff packet, and ranked next commands per lens with cost-size rationale.

Guardrails

  • Keep generated artifacts out of the target repo unless the user explicitly wants checked-in config.
  • Do not run full deepsec process or broad clawpatch review without an explicit high-cost decision; these can be expensive and noisy.
  • Treat local nested worktrees and dot-agent folders as contamination unless intentionally in scope: .claude/, .codex/, .agents/, .deepsec/, .semantic-slicing/.
  • If a tool maps contaminated paths, post-filter before ranking and call out the upstream limitation.
  • Never paste secrets from scan outputs. Scrub absolute personal paths before external PRs/comments.
  • For OpenClaw, use Testbox/Crabbox only when the task moves from mapping into validation.

References

  • Read references/workflow.md for concrete local setup and run commands.
  • Read references/slicing-taxonomy.md when choosing slice types or map layers.
  • Read references/openclaw-profile.md when the target is openclaw/openclaw.

Version history

  1. v0.4.0 GitHub ↗
    Original release notes

    ## Install `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill agent-device-lab -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill codebase-memory-mcp -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill codex-goal-mining -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill codex-session-recovery -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill crabpot-perf-metrics -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill crawlkit -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill ghcrawl-cluster-operator -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill github-airplane-mode -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill graincrawl -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill openclaw-github-dedupe -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill openclaw-pr-batch-sweep -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill operations-worktree -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill opik-integrations-auditor -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill opik-optimizer -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill org-branch-cleanup -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill semantic-slicing -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill session-done -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill technical-deslop -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill technical-documentation -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill technical-integrations -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill technical-skill-finder -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill tmux-agent-lane-orchestrator -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.4.0 --skill tmux-lane-orchestrator -y` ## Delta Compared to `v0.3.0`. Changed skill paths: `skills/agent-device-lab skills/codebase-memory-mcp skills/codex-goal-mining skills/codex-session-recovery skills/crabpot-perf-metrics skills/crawlkit skills/ghcrawl-cluster-operator skills/github-airplane-mode skills/graincrawl skills/openclaw-github-dedupe skills/openclaw-pr-batch-sweep skills/operations-worktree skills/opik-integrations-auditor skills/opik-optimizer skills/org-branch-cleanup skills/semantic-slicing skills/session-done skills/technical-deslop skills/technical-documentation skills/technical-integrations skills/technical-skill-finder skills/tmux-agent-lane-orchestrator skills/tmux-lane-orchestrator`

  2. v0.3.0 GitHub ↗
    Original release notes

    ## Install `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill codebase-memory-mcp -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill codex-goal-mining -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill codex-session-recovery -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill crabpot-perf-metrics -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill crawlkit -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill ghcrawl-cluster-operator -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill github-airplane-mode -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill graincrawl -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill openclaw-github-dedupe -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill openclaw-pr-batch-sweep -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill operations-worktree -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill opik-integrations-auditor -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill opik-optimizer -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill org-branch-cleanup -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill semantic-slicing -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill technical-deslop -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill technical-documentation -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill technical-integrations -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill technical-skill-finder -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill tmux-agent-lane-orchestrator -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.3.0 --skill tmux-lane-orchestrator -y` ## Delta Compared to `v0.2.1`. Changed skill paths: `skills/codebase-memory-mcp skills/github-airplane-mode skills/org-branch-cleanup`

  3. v0.2.1 GitHub ↗
    Original release notes

    ## Install `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill codebase-memory-mcp -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill codex-goal-mining -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill codex-session-recovery -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill crabpot-perf-metrics -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill crawlkit -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill ghcrawl-cluster-operator -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill graincrawl -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill openclaw-github-dedupe -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill openclaw-pr-batch-sweep -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill operations-worktree -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill opik-integrations-auditor -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill opik-optimizer -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill semantic-slicing -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill technical-deslop -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill technical-documentation -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill technical-integrations -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill technical-skill-finder -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill tmux-agent-lane-orchestrator -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.1 --skill tmux-lane-orchestrator -y` ## Delta Compared to `v0.2.0`. Changed skill paths: `skills/openclaw-pr-batch-sweep`

  4. v0.2.0 GitHub ↗
    Original release notes

    ## Install `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill codebase-memory-mcp -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill codex-goal-mining -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill codex-session-recovery -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill crabpot-perf-metrics -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill crawlkit -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill ghcrawl-cluster-operator -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill graincrawl -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill openclaw-github-dedupe -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill openclaw-pr-batch-sweep -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill operations-worktree -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill opik-integrations-auditor -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill opik-optimizer -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill semantic-slicing -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill technical-deslop -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill technical-documentation -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill technical-integrations -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill technical-skill-finder -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill tmux-agent-lane-orchestrator -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.2.0 --skill tmux-lane-orchestrator -y` ## Delta Compared to `v0.1.7`. Changed skill paths: `skills/codebase-memory-mcp skills/codex-goal-mining skills/codex-session-recovery skills/crabpot-perf-metrics skills/crawlkit skills/example-skill skills/ghcrawl-cluster-operator skills/graincrawl skills/openclaw-github-dedupe skills/openclaw-pr-batch-sweep skills/operations-worktree skills/opik-integrations-auditor skills/opik-optimizer skills/semantic-slicing skills/technical-deslop skills/technical-documentation skills/technical-integrations skills/technical-skill-finder skills/tmux-agent-lane-orchestrator skills/tmux-lane-orchestrator`

  5. v0.1.7 GitHub ↗
    Original release notes

    ## Install `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.1.7 --skill openclaw-github-dedupe -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.1.7 --skill technical-deslop -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.1.7 --skill technical-documentation -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.1.7 --skill technical-integrations -y` `npx skills add https://github.com/vincentkoc/dotskills/tree/v0.1.7 --skill technical-skill-finder -y` ## Delta Compared to `v0.1.6`. Changed skill paths: `skills/openclaw-github-dedupe`

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 提供针对大型代码库的高价值语义切片审查能力
  • 结合多种专业工具实现端到端安全审计工作流
  • 适用于 openclaw 等复杂项目的精准审查需求
Trigger Precision95/100

Highlights

  • 触发词精准覆盖 clawpatch/deepsec/gitcrawl/discrawl 工具链
  • 明确限定于 openclaw 相关仓库的审查场景
  • 边界清晰,避免与其他通用代码分析工具混淆
Structure and Standards94/100

Highlights

  • 文档结构完整,包含 Purpose/When to use/Workflow/Flow/Inputs/Outputs/Guardrails/References
  • 提供 mermaid 流程图增强可读性
  • frontmatter 完整,单文件长度适中
Execution Reliability91/100

Areas to improve

  • description写错位置 Reported severity: Minor

    顶层 frontmatter 的 description 字段为空,实际内容出现在 skill_body 内部

    Recommendation: 将 description 内容移至顶层 frontmatter 字段,保持规范一致性

Highlights

  • 工具来源明确,参数说明详尽
  • Guardrails 体现良好的安全意识和错误预防机制
  • 预算控制和临时文件管理规范可靠
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.