Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

project-scaffolding项目脚手架

Agent Skill

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

总安装

2,833

周安装

78

GitHub Stars

19

下载量

748
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/hedera-dev/hedera-skills --skill 'Project Scaffolding'

简介

project-scaffolding 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于关键词搜索、任务场景匹配或来源线索筛选等研究检索场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用该技能。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Project Scaffolding

Purpose

Generate a complete CLAUDE.md and .claude/ directory structure for any project. This gives AI agents the context they need to work effectively from the first session — build commands, conventions, quality gates, and session tracking.

Stack Detection

Before scaffolding, detect the project's tech stack by scanning for manifest files:

File FoundStack DetectedBuild Tool
tsconfig.jsonTypeScripttsc, npm/yarn/pnpm
package.json (no tsconfig)JavaScriptnpm/yarn/pnpm
pyproject.tomlPythonpip/poetry/uv
setup.py or requirements.txtPython (legacy)pip
Cargo.tomlRustcargo
go.modGogo
MakefileCheck contentsVaries
DockerfileContainerdocker

Detection Steps

  1. List files in project root: check for manifest files above
  2. If package.json exists, read scripts to find build/test/lint commands
  3. If pyproject.toml exists, read [tool] sections for configured tools
  4. If multiple stacks detected, note all of them (monorepo pattern)

CLAUDE.md Generation

Use the template from references/claude-md-template.md and fill in detected information. Target: under 200 lines. Claude Code truncates CLAUDE.md after ~200 lines in the system prompt, so keep it lean.

  1. Project Overview — read README.md or package.json description
  2. Build & Run Commands — detected from manifest scripts section (keep 8-10 most-used, add "See [manifest] for full list")
  3. Triggers — map file patterns to docs/skills for on-demand deep context
  4. Naming Conventions — select from references/naming-conventions.md based on stack. If the table is large, move to docs/CONVENTIONS.md and reference from Triggers
  5. Test Command — detected or ask user
  6. Lint Command — detected or ask user

What Gets Pre-Filled

  • Core Behaviors (including self-improvement and parallel session rules)
  • Triggers section (generated from detected project structure)
  • Test-First Development rules
  • Git Commit Rules (conventional commits)
  • Forbidden Files (.env, credentials, node_modules, etc.)
  • Environment Variables rules

What Needs Detection or User Input

  • Project name and description
  • Build, test, lint, and dev commands
  • Stack-specific naming conventions
  • Any custom conventions the user wants

Triggers Generation

The Triggers section maps file patterns to deeper documentation, enabling on-demand context loading without bloating CLAUDE.md.

How to Generate Triggers

  1. Scan project structure for distinct directories (e.g., src/, lib/, tests/, docs/)
  2. Identify existing documentation files (docs/*.md, ARCHITECTURE.md, CONTRIBUTING.md)
  3. Map each source directory to its most relevant doc or skill
  4. Include standard patterns: Dockerfile → deployment docs, tests/ → testing docs, new files → conventions

Example Generated Triggers

| File Pattern | Load |
|---|---|
| src/api/* | Read: docs/API.md |
| src/components/* | Read: docs/COMPONENTS.md |
| tests/* | Read: docs/TESTING.md |
| Dockerfile, docker-compose* | Read: docs/DEPLOYMENT.md |
| New .ts files | Read: docs/CONVENTIONS.md |

If no docs exist yet, generate stub documentation files with TODO placeholders during scaffolding.

MEMORY.md Seeding

Seed the project's MEMORY.md with initial lessons from the detected stack. MEMORY.md is auto-loaded into every Claude Code system prompt, creating a self-improvement loop.

Location

~/.claude/projects/<project-path-with-dashes>/memory/MEMORY.md

Where <project-path-with-dashes> is the absolute project path with / replaced by - (e.g., -Users-dev-myproject).

What to Seed

  1. Stack details — language version, build tool, package manager
  2. Architecture patterns — module structure discovered during detection
  3. Common pitfalls for the detected stack:

- TypeScript: ESM import extensions, tsconfig strictness, type-only imports - Python: virtual env activation, __init__.py requirements, type checking with mypy - Rust: borrow checker common mistakes, feature flags, workspace patterns - Go: module paths, exported vs unexported, error wrapping

  1. Testing patterns — framework, mock strategy, test file locations
  2. Owner preferences — any conventions the user specified during /init

Size Budget

Keep under 55 lines initially — leave room for growth as the agent learns during sessions. The 200-line system prompt limit applies to MEMORY.md too.

Directory Structure Creation

Create the following structure:

.claude/
├── commands/
│   └── parallel.md            ← multi-session coordination guide
├── reports/
│   ├── _registry.md          ← from session-management references
│   ├── _tech-debt.md         ← from session-management references
│   ├── architecture/
│   ├── bugs/
│   ├── code-review/
│   ├── config/
│   ├── dependencies/
│   ├── docs/
│   ├── features/
│   ├── integration/
│   ├── performance/
│   ├── refactor/
│   ├── security/
│   ├── testing/
│   ├── ci/
│   ├── tech-debt/
│   └── release/
└── scripts/
    └── post-edit-check.sh     ← from quality-gates hook

Steps

  1. Create all 15 category directories under .claude/reports/
  2. Copy registry-template.md content to .claude/reports/_registry.md (empty, ready to use)
  3. Copy tech-debt-template.md content to .claude/reports/_tech-debt.md (empty, ready to use)
  4. Copy post-edit-check.sh to .claude/scripts/ using cp via Bash (NOT the Write tool — Write can corrupt line endings and break the script): mkdir -p.claude/scripts && cp "$CLAUDE_PLUGIN_DIR/scripts/post-edit-check.sh".claude/scripts/post-edit-check.sh && chmod +x.claude/scripts/post-edit-check.sh If $CLAUDE_PLUGIN_DIR is unavailable, locate the plugin via find ~/.claude -name "post-edit-check.sh" | head -1 and cp from there.
  5. Create .claude/commands/parallel.md with project-specific file ownership boundaries
  6. Seed MEMORY.md at the auto-memory path (see MEMORY.md Seeding section above)

Hook Setup

Based on detected stack, wire up the PostToolUse hook:

  1. Create or update .claude/settings.json with exactly this content (no extra arguments, no modifications):
{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "bash .claude/scripts/post-edit-check.sh"
          }
        ]
      }
    ]
  }
}

Important: The command must be exactly bash.claude/scripts/post-edit-check.sh — do not add arguments like $CLAUDE_TOOL_INPUT_FILE_PATH. The script reads $CLAUDE_TOOL_INPUT from the environment automatically.

  1. Do NOT modify the script — it already handles all stacks (TypeScript, Python, Rust, Go) via file extension detection. Copy it verbatim.

Interactive Flow

When running the scaffolding, interact with the user for decisions:

Step 1: Detect and Confirm

Detected stack: TypeScript (package.json + tsconfig.json)
Build: npm run build
Test: npm test
Lint: npm run lint

Does this look correct? Any changes?

Step 2: Custom Conventions

Any project-specific conventions I should add to CLAUDE.md?
For example:
- Specific directory structure rules
- Required code patterns
- Forbidden patterns or anti-patterns

Step 3: Generate and Review

  1. Generate CLAUDE.md with all detected + user-provided info
  2. Create .claude/ directory structure
  3. Set up hooks
  4. Show summary of what was created

Step 4: Confirm

Created:
- CLAUDE.md (project configuration with Triggers, under 200 lines)
- .claude/reports/ (15 category dirs + registry + tech debt tracker)
- .claude/commands/parallel.md (multi-session coordination)
- .claude/scripts/post-edit-check.sh (auto-validation hook)
- .claude/settings.json (PostToolUse hook wired up)
- MEMORY.md (seeded at ~/.claude/projects/.../memory/MEMORY.md)

Ready to start developing with session tracking, auto-validation,
and self-improvement across sessions.

Cross-References

  • references/claude-md-template.md — Full CLAUDE.md template with placeholder sections
  • references/naming-conventions.md — Language-specific naming tables (TS, Py, Rust, Go)
  • references/git-workflow.md — Conventional commits, branching, and PR patterns

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.17%
按下载量换算271

Claude

31.13%
按下载量换算233

Cursor

19.83%
按下载量换算148

Gemini CLI

9.04%
按下载量换算68

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills