Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

analyze-codebase分析代码库

Agent Skill

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

总安装

210

周安装

9

GitHub Stars

公开资料未说明

下载量

73
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/lautaroleonhardt/pst --skill analyze-codebase

简介

analyze-codebase 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。
  • 通过 npx 安装后,结合原始 README 核验具体搜索方式。
  • 安装前需确认权限和维护状态,避免触发不必要的网络请求。
  • 建议根据实际任务场景验证其准确性和覆盖范围。

SKILL.md

Analyze Codebase

When to use

  • At the start of a Playwright testing session (before ingest-spec or plan-tests)
  • When running as part of run-testing-session pipeline (Stage 1)
  • When project context is stale and needs refresh

Important: Always Prompt, Never Skip

When invoked as part of the run-testing-session orchestrator (Stage 0):

  • If project-context.md does NOT exist: Show user "No global project context found. Run analyze-codebase? (required to proceed)" → User must choose Yes or the orchestrator cancels
  • If project-context.md EXISTS: Show user these options:

- A) Use existing context (skip analyze-codebase) - B) Re-run analyze-codebase (project has grown or changed) - C) Cancel session

This ensures the user always controls when the codebase analysis happens, especially important when the repository has grown and context needs refresh.

When run standalone (outside the orchestrator): analyze-codebase always writes to docs/playwright-spec-testing/project-context.md without prompting. Users can run it manually anytime.

Inputs

  • Project root directory path

What it does

Scan the project at the project root and produce a shared context document that all subsequent pipeline stages depend on. You are read-only — do not run the app or open a browser.

Phase 1: Playwright setup

Search the project root and common config locations for:

  • playwright.config.ts or playwright.config.js — note: testDir, baseURL, use.browserName, reporter
  • package.json — note the test script and any @playwright/test version
  • Existing test files matching **/*.spec.ts, **/*.spec.js, **/*.test.ts, **/*.test.js

If no Playwright config exists, note this clearly.

Phase 2: Routing structure

Look for:

  • app/ or pages/ directory → Next.js App Router or Pages Router
  • src/routes/ → SvelteKit or React Router file-based routing
  • router.ts or routes.ts → programmatic routing
  • Top-level index.html → single-page app without file-based routing

List the top-level routes you find with their paths and likely purpose.

Phase 3: Existing specs

Search for:

  • **/*.feature files — Gherkin specs
  • Any file in specs/, test-cases/, or test-docs/ directories
  • Any Markdown or text file whose name contains "test", "spec", "scenario", or "acceptance"

Phase 4: Tech stack

From package.json dependencies, identify:

  • UI framework: React, Vue, Svelte, Angular, or vanilla
  • Component library: shadcn/ui, MUI, Ant Design, Chakra, Radix, etc.
  • CSS approach: Tailwind, CSS Modules, styled-components

Phase 5: Write context document

Save findings to docs/playwright-spec-testing/project-context.md (create directory if needed).

Use this exact structure:

# Project Context

_Generated by analyze-codebase on [DATE]_

## Playwright Config
- Config file: [path or "not found"]
- testDir: [value]
- baseURL: [value]
- Default browser: [value]

## Test File Conventions
- Existing test files: [list with paths]
- Naming pattern: [e.g., "*.spec.ts in tests/"]
- Output directory for new tests: [inferred from testDir, or "not yet determined — plan-tests will ask"]

## Routing Structure
- Framework: [Next.js App Router / Pages Router / React Router / SvelteKit / other]
- Top-level routes: [list]

## Existing Specs
- [path] — [Gherkin / plain English]

## Tech Stack
- UI framework: [name]
- Component library: [name or "none detected"]
- CSS approach: [name]

## Notes
[Any issues, warnings, or things to know]

Phase 6: Scan for reusable test infrastructure

After writing the main project-context.md, scan the project for reusable test infrastructure and append a new section to the same file.

What to scan for:

  • Custom fixture files (fixtures/, *.fixtures.ts, any file containing test.extend()`)
  • Page objects (page-objects/, pages/, any class whose constructor accepts a Playwright Page parameter)
  • Auth helpers (functions named login*, auth*, signIn*)
  • Shared beforeEach patterns in existing spec files

Append to project-context.md:

## Reusable Test Infrastructure

### Fixtures
- `tests/fixtures/auth.fixture.ts` — exports `authenticatedPage` (pre-logged-in page)
- `tests/fixtures/index.ts` — re-exports all fixtures via custom `test` object

### Page Objects
- `tests/pages/LoginPage.ts` — methods: `fill()`, `submit()`, `expectError()`
- `tests/pages/SettingsPage.ts` — methods: `openLicensesTab()`, `clickAssignUsers()`

### Auth Helpers
- `tests/helpers/login.ts` — `loginAs(page, role)` fills credentials and submits

### Notes
[None detected] OR [any caveats about partial coverage]

If nothing is found in any subcategory, omit that subsection and write instead: ### Notes — No reusable infrastructure detected

Global Output (Never Workspace-Scoped)

The output file docs/playwright-spec-testing/project-context.md is ALWAYS at the global root level, never inside a workspace directory. This file is shared across all sessions in the project. If running as part of a workspace session (from run-testing-session), the workspace will generate its own workspace-context.md from this global context, but analyze-codebase only writes the global file.

Key Rules

  • Never invent information. If not found, write "not found" or "not detected."
  • Do not run the app or open a browser.
  • If Playwright is not installed, report BLOCKED.

Output

docs/playwright-spec-testing/project-context.md (includes ## Reusable Test Infrastructure section)

Report when done:

  • Status: DONE | DONE_WITH_CONCERNS | BLOCKED | NEEDS_CONTEXT
  • Summary of what was found
  • Path to output file
  • Any concerns or missing information

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.95%
按下载量换算25

Claude

29.08%
按下载量换算21

Cursor

18.89%
按下载量换算14

Gemini CLI

8.73%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills