Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

architecture-research建筑研究

Agent Skill

architecture-research 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

238

周安装

10

GitHub Stars

公开资料未说明

下载量

83
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:architecture-research(建筑研究)
来源仓库:https://github.com/tychohq/agent-skills
仓库路径:skills/architecture-research
安装命令:
npx skills add https://github.com/tychohq/agent-skills --skill architecture-research
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tychohq/agent-skills --skill architecture-research

简介

该技能协助理解代码库结构与设计决策,提供模块边界与数据流的可视化分析。

  • 适用于需要快速掌握项目架构或追踪技术选型的场景,支持文档与源码交叉验证。
  • 通过扫描目录结构、入口点与依赖注入模式,提取关键抽象与部署配置信息。
  • 安装前应检查仓库克隆权限及是否允许读取私有文档,建议结合 Issue 讨论确认上下文完整性。
  • 不替代人工审查,输出为信息汇总,需用户进一步判断设计合理性。

SKILL.md

Architecture Research

Trigger

Activate when the user wants to:

  • Understand how a repo or system is architected
  • Get diagrams of a codebase's structure or data flow
  • Understand design decisions and trade-offs in a project

Workflow

1. Read the Source

Clone or browse the repo. Read actual code — module structure, entry points, key abstractions. Don't rely solely on READMEs.

Focus on:

  • Directory structure and module boundaries
  • Entry points and public APIs
  • Data models and storage
  • Config and dependency injection patterns
  • Build/deploy setup

2. Find External Context

Search for official docs, blog posts, conference talks, design docs, ADRs, and community discussions that explain the *why* behind the architecture.

Cite what you find. If you're inferring rationale (no source), say so explicitly.

3. Explain from Multiple Angles

Cover at least these perspectives:

AngleWhat to show
System overviewMajor components and how they connect
Data/control flowWhat happens for a key operation (e.g., a request, a build, a deploy)
Design decisionsWhat they chose, the obvious alternative, and why

4. Produce ELK Diagrams (with SVG rendering)

For each major angle, generate an ELK JSON graph (elkjs format), then render it to SVG so it displays inline in markdown.

ELK JSON structure

{
  "id": "root",
  "layoutOptions": {
    "elk.algorithm": "layered",
    "elk.direction": "DOWN",
    "elk.spacing.nodeNode": "40"
  },
  "children": [
    { "id": "node1", "width": 150, "height": 60, "labels": [{ "text": "Component A" }] }
  ],
  "edges": [
    { "id": "e1", "sources": ["node1"], "targets": ["node2"], "labels": [{ "text": "calls" }] }
  ]
}

Rendering to SVG

This skill uses the diagrams skill for rendering. Install it if you haven't:

clawhub install diagrams

Then render ELK JSON → SVG using the diagrams skill's renderer:

# Single file
node <diagrams-skill-dir>/scripts/render-elk.mjs diagram.json output.svg

# Batch: all .json files in a folder → svg/ subfolder
node <diagrams-skill-dir>/scripts/render-elk.mjs --dir <folder>

# Batch + PNG (macOS only)
node <diagrams-skill-dir>/scripts/render-elk.mjs --dir <folder> --png

Replace <diagrams-skill-dir> with the path to the installed diagrams skill directory.

Note: elkjs must be installed locally where you run the script. See the diagrams skill's SKILL.md for full setup.

Workflow for each diagram:

  1. Write the ELK JSON to a .json file in the research folder
  2. Render: node <diagrams-skill-dir>/scripts/render-elk.mjs diagram.json diagram.svg
  3. Embed in the markdown doc: ![System Overview](system-overview.svg)
  4. Keep both the .json (source of truth) and .svg (rendered) in the research folder

Tips

  • Use elk.algorithm: "layered" for flow/dependency diagrams
  • Use elk.algorithm: "force" for peer-relationship diagrams
  • Group related nodes with compound nodes (children inside a parent)
  • Label edges with the relationship (calls, imports, emits, reads, etc.)
  • Keep node counts under ~20 per diagram — split into multiple if needed

5. Output

Create a research folder and markdown doc:

<output-dir>/<repo-slug>-architecture/
├── prompt.md          # Original question
├── architecture.md    # The deliverable
├── *.json             # ELK JSON source files (editable)
└── *.svg              # Rendered SVG diagrams (embedded in architecture.md)

Place output wherever makes sense for your workspace (e.g., a research/ directory).

architecture.md format:

# [Repo Name] — Architecture

**Repo:** <url>
**Researched:** <date>

## Overview
<1-2 paragraph summary of what this thing is and how it's built>

## System Diagram
![System Overview](system-overview.svg)
<Prose explanation>

## Data/Control Flow
<Pick a key operation, walk through it>
![Request Flow](request-flow.svg)

## Design Decisions

| Decision | Alternative | Rationale | Source |
|----------|------------|-----------|--------|
| ... | ... | ... | link or "inferred" |

## Key Abstractions
<The core types/interfaces/patterns that make the system tick>

## Sources
<Links to docs, posts, talks cited above>

6. Deliver

Send a brief summary (L2 — 75-150 words) in chat with key findings. Attach or link the full doc. Offer PDF export if wanted.

Notes

  • Don't make stuff up. If you can't find why a decision was made, say "inferred" or "no source found."
  • Excalidraw: If the user asks for Excalidraw output instead of ELK, you can try, but ELK JSON is the default.
  • Mermaid fallback: If the user's tooling can't render ELK, offer Mermaid as a fallback.
  • Scope control: For large repos, focus on the architectural skeleton first. Offer to go deeper into specific subsystems on request.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.17%
按下载量换算29

Claude

30.9%
按下载量换算26

Cursor

16.49%
按下载量换算14

Gemini CLI

8.1%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills