Project analysis core

From event4u-app/agent-config · View interactive version

Project analysis core is an AI agent skill from the GitHub repository event4u-app/agent-config. Raw discovery primitives — project discovery, version resolution, docs loading, architecture mapping, execution flow. Called by `universal-project-analysis`. Single-pass scan → `project-analyzer`.

How to use this skill

Skill file

project-analysis-core

When to use

Use this skill when:

Do NOT use when:

Procedure

1. Project discovery

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

Look at:

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:

4. Map architecture

Build a system model:

5. Map execution flow

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

Check:

6. Analyze critical packages

For each critical package:

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:

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

(CODE0 § 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

Do NOT

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.