semantic-slicing

语义切片:通过结合 clawpatch 特征图、deepsec 威胁候选、可视化审查图以及可选的 gitcrawl/discrawl 证据,为 openclaw/openclaw 等仓库构建本地语义审查切片。

仓库最近推送
GitHub Stars
111
Forks
9
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "semantic-slicing":https://skillpi.com/zh/skills/deepskill-09d0d7ba6453321573b473a2f7c827fc709fe30b3fe6fd02bbfd952da7ff4be1。安装前核对上游来源和版本:https://github.com/vincentkoc/dotskills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

语义切片:通过结合 clawpatch 特征图、deepsec 威胁候选、可视化审查图以及可选的 gitcrawl/discrawl 证据,为 openclaw/openclaw 等仓库构建本地语义审查切片。

0 下载

介绍来源: third_party · vincentkoc · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
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.

版本历史

  1. v0.4.0 GitHub ↗
    原版更新说明

    ## 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 ↗
    原版更新说明

    ## 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 ↗
    原版更新说明

    ## 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 ↗
    原版更新说明

    ## 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 ↗
    原版更新说明

    ## 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`

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

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

亮点

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

亮点

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

待提升项

  • description写错位置 原报告严重程度:轻微

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

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

亮点

  • 工具来源明确,参数说明详尽
  • Guardrails 体现良好的安全意识和错误预防机制
  • 预算控制和临时文件管理规范可靠
证据可验 (前四项均值)93/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

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

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • github.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。