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

analyze-project分析项目

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

318

周安装

13

GitHub Stars

1

下载量

102
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/olamedia/analytics-skills --skill analyze-project

简介

analyze-project 用于辅助数据整理、表格处理、CSV/Excel 分析和指标计算。

  • 适合清洗字段、汇总数据、发现异常或生成统计口径说明。
  • 通过 npx skills add 命令从 GitHub 仓库安装,需确认权限与维护状态。
  • 使用时需确认数据来源和时间范围,避免将样本当全量事实。
  • 涉及敏感数据导出时应先确认脱敏方式和操作边界。

SKILL.md

Analyze Project

Scan a project and produce or update docs/TechStack.md and docs/ProjectStructure.md — living documentation that any AI agent session can read to instantly understand the project without re-scanning from scratch.

When to Use

  • Starting work on a project for the first time
  • Before any feature work when project docs don't exist yet
  • Periodically to keep docs current after codebase changes
  • After major refactors, dependency upgrades, or service additions

When NOT to use: docs/TechStack.md and docs/ProjectStructure.md exist and no significant structural changes (config files, directories, container configs) have occurred since the last scan.

Input

  • A project or workspace root (provided by user or detected from workspace)

Output

  • docs/TechStack.md — concise tech stack reference card
  • docs/ProjectStructure.md — operational project map
  • In monorepos: per-service copies under [service-path]/docs/

The Process

Step 1: Check Existing Docs

Check if docs/TechStack.md and docs/ProjectStructure.md exist at the project root.

If they exist, read them and extract the YAML frontmatter:

---
generated-by: analyze-project
date: 2024-03-14T12:00:00Z
commit: abc1234
---

If the files exist, hold their contents — you'll compare against fresh scan results later.

Step 2: Staleness Gate

Run git rev-parse --short HEAD to get the current commit hash.

If the commit field in frontmatter differs from HEAD (it usually will — it records the commit at last scan, not the latest), check what actually changed:

Run git diff --name-only <frontmatter-commit>..HEAD to get committed changes, and git status --short to get uncommitted changes (staged, unstaged, and untracked files). Combine both lists.

Evaluate whether the changes are significant for project docs:

  • Significant changes (trigger re-scan): new/removed/renamed config files (package.json, composer.json, docker-compose.yml, Dockerfile, Makefile, *.config.*, etc.), new/removed top-level directories, changes to .devcontainer/, CI config changes, README/INSTALL/SETUP changes
  • Insignificant changes (skip re-scan): source code changes within existing directories, test changes, asset changes, documentation changes in subdirectories

Decision:

  • Files don't exist → Proceed to scan.
  • Files exist, commits match HEAD → Report "Project docs are up to date." and stop.
  • Files exist, commits differ, only insignificant changes → Report "Project docs are up to date (no structural changes since last scan)." and stop.
  • Files exist, commits differ, significant changes detected → Report which files changed and proceed to scan.
  • No commit field in frontmatter → Proceed to scan.

If git is not available, skip this check and always proceed to scan.

Step 3: Ownership Check

For each existing file, check the generated-by field in YAML frontmatter:

  • generated-by: analyze-project present → Skill owns this file. Will update without asking.
  • File exists but no generated-by: analyze-project → Manually authored. Ask the user before overwriting:
"docs/TechStack.md exists but wasn't generated by this skill. Overwrite it? (yes/no)"

If user declines, skip that file and report findings in chat instead.

Step 4: Scan Root

List the project root directory. Read relevant files found:

Config files (reveal tech stack):

  • package.json, composer.json, Cargo.toml, go.mod, pyproject.toml, Gemfile, build.gradle, pom.xml, etc.
  • tsconfig.json, vite.config.*, webpack.config.*, nuxt.config.*, etc.

Container and dev environment:

  • docker-compose.yml / docker-compose.yaml
  • Dockerfile
  • .devcontainer/devcontainer.json

CI/CD:

  • .github/workflows/*.yml
  • .gitlab-ci.yml
  • Jenkinsfile

Documentation:

  • README.md
  • INSTALL.md, SETUP.md

Quality tooling:

  • Makefile
  • .eslintrc.*, eslint.config.*
  • .prettierrc
  • phpunit.xml, vitest.config.*, jest.config.*, pytest.ini

Start from the root listing. If root has enough config files, that's all you need. If root contains only a single folder (e.g., the repo wraps one project in a subdirectory), treat that folder as the effective root and list it instead. If root is unclear, run a quick glob for config files (**/{*.yml,*.yaml,*.json,*.toml,*.ini,*.md}) limited to a small number of results — the paths reveal where projects and services live (e.g., services/api/package.json). Then read those directories. Avoid full recursive filesystem scans.

Step 5: Detect Monorepo

Check for monorepo signals from what was found in Step 4:

  • Directories named apps/, services/, packages/ at root
  • docker-compose.yml defining multiple services with build contexts
  • Workspace config in package.json (workspaces field) or pnpm-workspace.yaml
  • Multiple Dockerfile references in different subdirectories

If monorepo detected, identify service directories and their names.

Step 6: Scan Services (monorepo only)

For each service directory identified in Step 5, apply the same root-reading approach:

  1. List the service directory
  2. Read its config files (package.json, composer.json, Dockerfile, etc.)
  3. Read its README.md if present
  4. Note its doc location, dev/lint/test commands

Step 7: Write Docs

Use the templates from references/formats.md.

Single project:

  • Write docs/TechStack.md with tech stack reference card
  • Write docs/ProjectStructure.md with operational project map
  • ProjectStructure.md ends with a "See Also" link to DatabaseStructure.md

Monorepo:

  • Write root docs/TechStack.md with shared stack + per-service summary
  • Write root docs/ProjectStructure.md with service table and monorepo-level overview
  • For each service, write [service-path]/docs/TechStack.md and [service-path]/docs/ProjectStructure.md
  • Create docs/ directories if they don't exist

All files get YAML frontmatter with:

  • generated-by: analyze-project
  • date: current ISO 8601 datetime
  • commit: current short git commit hash

Announce the saved paths:

"Project docs updated: - docs/TechStack.md - docs/ProjectStructure.md [per-service paths if monorepo] Commit: [hash]"

Common Rationalizations

RationalizationReality
"The README has all this info"READMEs describe intent and setup steps. TechStack and ProjectStructure describe current reality in a structured, machine-readable format.
"I can just read package.json"One config file gives you one piece. These docs synthesize all signals into two quick-read files.
"The project is small, I don't need docs"Small projects still have a stack, structure, and tooling. Two short files save every future session from re-discovering them.
"Docs will get outdated"The staleness gate and commit tracking exist specifically to prevent this. Run the skill again.

Red Flags

  • Skipping the staleness check and always rewriting (wastes time, loses manual edits)
  • Deep-scanning the filesystem instead of reading root
  • Not including YAML frontmatter in output files
  • Overwriting manually-authored files without asking
  • Missing the monorepo detection step on a multi-service project
  • Writing rationale or opinions instead of facts in TechStack.md
  • Not creating docs/ directory before writing

Verification

Before finishing, confirm:

  • Staleness check performed (or git unavailable noted)
  • Ownership check performed for existing files
  • Root directory listing read (not deep-scanned)
  • Relevant config files read
  • docs/TechStack.md written with frontmatter and concise stack listing
  • docs/ProjectStructure.md written with frontmatter and operational map
  • ProjectStructure.md ends with reference to DatabaseStructure.md
  • If monorepo: services detected and per-service docs written
  • All generated files have generated-by, date, and commit in frontmatter
  • Saved paths announced to user

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.1%
按下载量换算39

Claude

27.44%
按下载量换算28

Cursor

18.47%
按下载量换算19

Gemini CLI

8.61%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills