跳到正文
cccskills
免费在 GitHub 公开

project-analysis-core

Raw discovery primitives — project discovery, version resolution, docs loading, architecture mapping, execution flow. Called by `universal-project-analysis`. Single-pass scan → `project-analyzer`.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md5.1 KB
  • evals/triggers.json1.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

project-analysis-core

When to use

Use this skill when:

  • A project or codebase is unknown
  • You need a universal deep-analysis workflow
  • Framework-specific analysis is not yet clear
  • You need to reconstruct the real system before going deeper
  • universal-project-analysis routes here

Do NOT use when:

  • The framework-specific path is already known and should be analyzed directly
  • The task is only a small local code question
  • The issue is already isolated and needs root-cause analysis more than discovery

Procedure

1. Project discovery

Identify: language, framework, runtime environment, package managers, entrypoints, documentation locations.

Look at:

  • composer.json, composer.lock
  • package.json, lock files
  • bootstrap files
  • Dockerfile / compose files
  • CI workflows
  • README / AGENTS / docs

2. Resolve exact versions

Determine exact installed versions.

Priority:

  1. lock files
  2. manifest constraints
  3. CI / Docker evidence
  4. framework constants or bootstrap evidence

Validate: framework version is explicit, critical package versions are explicit, uncertainty is marked if no exact version is available.

3. Load documentation

For each important framework or package:

  • use version-matching docs
  • check official docs first
  • read upgrade notes if relevant
  • separate default behavior from project customizations

4. Map architecture

Build a system model:

  • entrypoints
  • dependency flow
  • container / DI structure
  • modules and boundaries
  • state systems
  • external integrations

5. Map execution flow

Trace the relevant path: HTTP, CLI, queue, scheduler, events, webhooks.

Check:

  • where sync becomes async
  • where transactions start/end
  • where side effects happen
  • where external calls leave the system

6. Analyze critical packages

For each critical package:

  • where it is used
  • whether usage matches docs
  • whether config matches version
  • whether known issues exist
  • who depends on it

7. Research real-world evidence

Search for: exact errors, version-specific issues, known package bugs, unusual patterns.

Prioritize:

  1. official docs
  2. vendor source
  3. GitHub issues
  4. verified StackOverflow answers
  5. blog posts last

8. Validate the system model

Check:

  • framework and package versions are explicit
  • architecture map matches code structure
  • execution path is traceable
  • docs were matched to actual versions
  • next-step specialist skill is clear

Output format

  1. Project summary
  2. Stack and versions
  3. Architecture map
  4. Execution flow overview
  5. Critical packages and findings
  6. Known uncertainties
  7. Recommended next specialist skill

Improvement mode — check for an existing artefact first

Before a full analysis, ask whether this target has already been analysed:

npx tsx node_modules/@event4u/agent-config/src/scripts/select_analysis_mode.ts "<target>"

full → run steps 1-8 as written. delta → read the named artefact first, then analyse only what it does not cover: gaps, sections the tree has moved past, patterns that are new since it was written. The output format is unchanged; the reading is narrower.

This changes write economics only. A concept page is a hypothesis cache, never truth — the delta path re-verifies every structural claim it carries forward against a live source, exactly as a full run would (source-discovery-gate § v1↔v2 isolation). A cheaper write is not a licence to trust a cached read, and "the page already says so" is not evidence.

An empty page counts as absent: it carries no conclusions to delta against, so the router answers full.

Knowledge capture (convention_detected events)

An architecture map or stack finding that recurs (a naming convention, a module boundary, a layering rule) is worth persisting for the team. Append to the knowledge intake instead of leaving it in the one-off analysis output (applies to every project-analysis-* specialist this skill hands off to, not just this one):

npx tsx node_modules/@event4u/agent-config/src/scripts/emit_knowledge_event.ts --type convention_detected \
    --pattern "<pattern>" --evidence "file:line" --sample-size <N> --scope project

/team-knowledge consolidate turns accumulated events into agents/knowledge/concepts/ pages as a reviewed batch.

Gotcha

  • If versions are guessed, the whole analysis becomes unreliable.
  • If you skip entrypoints, the architecture model will be shallow.
  • If you use latest docs instead of installed-version docs, conclusions may be wrong.

Do NOT

  • Do NOT assume framework or package versions
  • Do NOT stop after reading only manifests
  • Do NOT confuse project custom code with vendor behavior
  • Do NOT skip documentation lookup for critical packages
  • Do NOT conclude root cause here — route to hypothesis-driven analysis for that

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when reviewing UI for accessibility — WCAG 2.2 AA, keyboard nav, focus, ARIA, contrast, screen-reader semantics — even on 'is this a11y-OK?' or 'mach das barrierefrei'.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config122026年10月20日 更新

Use when defining or auditing the activation event — aha-moment selection, retention correlation, falsifiable definition. Triggers on 'what is our aha moment', 'redefine activation'.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config122026年10月20日 更新

Use when capturing an architectural decision — file naming, next ADR number, Status / Context / Decision / Consequences, index regen; fires even without saying 'ADR'.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config122026年10月20日 更新

Adversarial critique — devil's advocate, stress-test, honest teardown ('poke holes', 'be brutal', 'was hältst du davon'); explicit request only. Routine code or design review → code-review.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config122026年10月20日 更新

Use when reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md. Understands the full .augment/, agents/, and copilot-instructions structure.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config122026年10月20日 更新

Use for an adversarial red-team / blue-team / auditor review of an AI agent's CONFIG + behaviour (rules, skills, MCP, hooks, permissions) — attack-chain → defensive-gap list, not a code audit.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config122026年10月20日 更新

查看 event4u-app 的全部技能

报告此技能的问题