본문으로 건너뛰기
cccskills
무료GitHub에 공개

dependency-graph

Use when a JavaScript or TypeScript project's dependencies must be seen as they are in the code: the whole graph, what one module depends on, who depends on it, or its neighbourhood, at file or folder level. Produces a Mermaid graph document in aiview, parsed by a deterministic script, never inferred. Not for designing a module's interface (deepen-module).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Ovich/swarmstorm스타 13(GitHub 13 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(2)

  • SKILL.md2.3 KB
  • scripts/graph.mjs5.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Dependency graph

The graph is parsed, never written by hand or guessed. scripts/graph.mjs runs dependency-cruiser over the code, with the project's own TypeScript, and turns the ask into options. The same options give the same graph on the same commit.

Run it

Translate the ask into options, then run it once:

node <skill-dir>/scripts/graph.mjs --root <the package's folder> [--from <path>] [--to <path>] [--focus <path> --depth <n>] [--steps <n>] [--level <n>] [--only <regex>] [--exclude <regex>] --title "<title>" --out <path>
  • What a module depends on: --from that module or folder.
  • Who depends on it: --to it.
  • Its neighbourhood: --focus it, --depth the hops.
  • Not too far: --steps <n> follows imports only n steps from --from.
  • Folders, not files: --level 2 folds src/<area>/… into one node per area; the coarser view first, then open the part that matters.
  • Noise out: --exclude "tests|generated"; node_modules and Node's own modules are always out.

The root is the folder holding the package's tsconfig.json (its extends resolves from there); in a monorepo, one package per graph. The first run installs dependency-cruiser and the project's TypeScript into a cache, needing the network once.

The document

Through the aiview skill: kind report from YYYY-MM-DD-<subject>.dependency-graph.report.md, tags dependency-graph and the module, group the piece of work it serves. The script writes it at the path aiview path gives, with the commit, the counts and the command that makes it again. Open it and tell the person the URL. A graph over about a hundred nodes is folded with --level or narrowed before it is shown.

What the graph shows is said under it, in a few lines: the cycles, a dependency against the project's stated boundaries (its conventions file), a module far more depended on than the rest. Nothing beyond what the edges show.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

aiview

무료

Use whenever a document is produced for the user to read and react to while it evolves: a brainstorm board, a plan, a design language, a prototype, a PR analysis, a review report, a live PDF. Also when a document must be registered, opened, listed, moved or retired, or a prototype's bindings checked. Not for code, tests or configuration, or any file nobody opens in a browser.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Ovich/swarmstorm132026년 10월 29일 업데이트

Use when a person wants to think an idea through and keep the discussion: a feature, a tool choice, an architecture question, before a plan or without one, with the agent through an interview. Produces a board in aiview holding the decisions, the diagrams and what was investigated. Not for a swarm of seats working it (brainswarm), not for an implementation plan and not for bug fixes.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Ovich/swarmstorm132026년 10월 29일 업데이트

Use when a person wants a swarm of role seats to work a topic on the swarm board under a chosen protocol: a brainstorm (ideas before any judgment), a debate (questions argued to decisions, a skeptic endorsing) or an editorial (one text drafted, read by seats standing for its readers, revised), a protocol or template the project keeps as a `protocol-<name>` skill (or an older `brainswarm-<name>` one), or a custom protocol recommended for the person's intent, or a seat's brief names a brainswarm protocol. Produces the run's record in aiview, written by the orchestrator alone. Not for one person thinking aloud with the agent (brainstorm, interview) and not for a plan's slices (execute-plan).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Ovich/swarmstorm132026년 10월 29일 업데이트

cold-read

무료

Use when dispatched to cold-read a plan, as an agent that was not in the conversation that wrote it, to say whether it can be carried out from the document alone. Produces what the reader would build, its questions, and a verdict, ready or not ready, repeated as the writer fixes the plan. Not for judging the design (interview, pr-review), not for the mechanical checks (aiview plan check, tracker check), and not for writing the plan (write-plan).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Ovich/swarmstorm132026년 10월 29일 업데이트

Use when code is hard to follow and is to be audited or reworked: long if/else or switch chains, cascades of type checks or parse attempts, kind fields compared to strings, flag parameters, deep nesting, a function hard to read. Also for complexity guardrails, or one long conditional function pasted. Produces a ranked audit of families, one family reworked behind characterization tests, or the guardrails.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Ovich/swarmstorm132026년 10월 29일 업데이트

Use when a page is wanted to work on something with the person during development, fed the project's real data (comparing model answers, walking an agent call by call, measuring an output against its template), when such a workbench has to change, be reworked or its feed broke, or mid-session when turns went into aligning with the person on how to do a kind of work that recurs and real project data could show it. Produces the page in aiview, kind `workbench`, and the project's `workbench-<bench>` skill with its feed and operating steps. Not for designing a product screen (design-prototype) or verifying user stories (verification-skill-create).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Ovich/swarmstorm132026년 10월 29일 업데이트

Ovich의 스킬 모두 보기

이 스킬의 문제 신고