360 Secure SkillHub
360 安全技能中心

how

面向资深工程师的代码库讲解 Skill:接收“某功能如何工作”或归属、分层问题,委托只读子代理探索代码库,输出可直接建立架构心智模型的说明;不修改代码,动机问题应使用 why。

分类:开发
cursor
热度 36.90
最近更新 2026-11-15 12:12:48

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add cursor/plugins/how
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
how
description
Use for "how does X work", code walkthroughs before changing something, and placement / ownership / layering questions ("where should this live", "which package owns this", "is this the right layer"). Explains subsystem architecture, runtime flow, onboarding mental models. Use why for motivation.
disable-model-invocation
true

How

Explore the codebase to answer "how does X work?" questions.

If the scope is ambiguous, state your interpretation and explore. The user can redirect.

1. Explain

Spawn one Task subagent with subagent_type: generalPurpose and readonly: true that explores and explains in one pass. Give it the user's question and this brief:

You are writing an architectural explanation for a senior engineer. Explore the codebase and write an explanation that a senior engineer unfamiliar with this area could read and walk away with a solid mental model. They should understand the architecture well enough to start working in it confidently. You have read-only access to the codebase.

2. Present

Present the subagent's output. Light edits for clarity or context from the conversation are fine. Do not substantially rewrite it.