tidy-project-structure
정보
이 Claude Skill은 프로젝트 파일을 표준 디렉토리로 정리하고 핵심 코드 로직을 변경하지 않으면서 문서를 업데이트합니다. 흩어진 파일, 오래된 README, 설정 불일치, 더 이상 사용되지 않는 항목을 해결하며 명명 일관성을 유지합니다. 코드 기능은 정상이지만 파일 구조가 체계를 잃었을 때 프로젝트 정리에 사용하세요.
빠른 설치
Claude Code
추천npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/tidy-project-structureClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
整案構
用
案組離規時用:
- 檔散於諸目無明組
- README 舊或含斷例
- 配檔繁衍(dev/staging/prod 漂)
- 棄檔留於案根
- 名規於諸目不一
勿用於碼重構或依重構。此技焦於檔組與文衛。
入
| Parameter | Type | Required | Description |
|---|---|---|---|
project_path | string | Yes | Absolute path to project root |
conventions | string | No | Path to style guide (e.g., docs/conventions.md) |
archive_mode | enum | No | move (default) or delete for deprecated files |
readme_update | boolean | No | Update stale READMEs (default: true) |
行
一:察目布
比今構於案規或語善法。
諸語常規:
JavaScript/TypeScript:
src/ # Source code
tests/ # Test files
dist/ # Build output (gitignored)
docs/ # Documentation
.github/ # CI/CD workflows
Python:
package_name/ # Package code
tests/ # Test suite
docs/ # Sphinx docs
scripts/ # Utility scripts
R:
R/ # R source
tests/testthat/ # Test suite
man/ # Documentation (generated)
vignettes/ # Long-form guides
inst/ # Installed files
data/ # Package data
Rust:
src/ # Source code
tests/ # Integration tests
benches/ # Benchmarks
examples/ # Usage examples
得:違規之檔/目列存於 structure_audit.txt
敗:無文規→用語標默
二:移錯位之檔
遷檔至常目。
常移:
tests/外測檔 → 移於tests/docs/外文 → 移於docs/src/中構物 → 刪(當忽於 git)- 根中配檔 → 移於
config/或.config/
各移:
# Check if file is referenced anywhere
grep -r "filename" .
# If no references or only relative path references:
mkdir -p target_directory/
git mv source/file target_directory/file
# Update any imports/requires
# (language-specific — see repair-broken-references skill)
得:諸檔於常位;git 史以 git mv 留
敗:移斷入→更入路或升
三:察 README 新
識諸 README 中陳訊。
陳示:
- 末改 >6 月前
- 引舊版號
- 斷鏈或例
- 缺段(裝、用、貢)
- 無證徽或斷徽
# Find all READMEs
find . -name "README.md" -o -name "readme.md"
# For each README:
# - Check last modified date
git log -1 --format="%ci" README.md
# - Check for broken links
markdown-link-check README.md
# - Verify example code still runs (sample first example)
得:陳 README 列於 readme_freshness.txt 含具患
敗:markdown-link-check 不在→手覆外鏈
四:更陳 README
修斷鏈、更例、加缺段。
標修:
- 替斷徽 URL
- 更裝指中版號
- 修斷例(行驗)
- 加缺段(用案規模)
- 更權年
README 模構:
# Project Name
Brief description (1-2 sentences).
## Installation
```bash
# Language-specific install command
Usage
# Basic example
Documentation
Link to full docs.
Contributing
Link to CONTRIBUTING.md or inline guidelines.
License
LICENSE badge and link.
得:諸 README 更;例驗行
敗:例不可驗→以警注標
### 五:察配檔
識配漂與合複設。
**常配患**:
1. 多 `.env` 檔(`.env`、`.env.local`、`.env.dev`、`.env.prod`)
2. 跨配檔複設
3. 硬碼密(當用環變)
4. 舊 API 端或功旗
```bash
# Find all config files
find . -name "*.config.*" -o -name ".env*" -o -name "*.yml" -o -name "*.yaml"
# For each config:
# - Check for duplicate keys
# - Grep for hardcoded secrets (API keys, tokens, passwords)
grep -E "(api[_-]?key|token|password|secret)" config_file
# - Compare dev vs prod settings
diff .env.dev .env.prod
得:配漂文於 config_review.txt;密標升
敗:差顯大→升於 devops-engineer
六:藏棄檔
移或刪不需檔。
藏候:
- 注配檔(如
nginx.conf.old) -
1 年未行之舊腳本
- 備檔(如
file.bak、file~) - 誤入之構物
藏程:
# Create archive directory (if archive_mode=move)
mkdir -p archive/YYYY-MM-DD/
# For each deprecated file:
# 1. Verify not referenced anywhere
grep -r "filename" .
# 2. Check git history for last modification
git log -1 --format="%ci" filename
# 3. If not modified in >1 year and no references:
if [ "$archive_mode" = "move" ]; then
git mv filename archive/YYYY-MM-DD/
else
git rm filename
fi
# 4. Document in ARCHIVE_LOG.md
echo "- filename (reason, last modified: DATE)" >> ARCHIVE_LOG.md
得:棄檔藏;ARCHIVE_LOG.md 更
敗:不確檔棄否→留位文於報
七:驗名規
察跨案名不一。
常規:
- kebab-case:
my-file.js(JS/web 常) - snake_case:
my_file.py(Python 標) - PascalCase:
MyComponent.tsx(React 件) - camelCase:
myUtility.js(JS 函)
# Find files violating conventions
# Example: Python project expecting snake_case
find . -name "*.py" | grep -v "__pycache__" | grep -E "[A-Z-]"
# For each violation, either:
# 1. Rename to match conventions
# 2. Document exception (e.g., Django settings.py convention)
得:諸檔合名規或例外文
敗:改名斷入→更參或升
八:生整報
文諸構變。
# Project Structure Tidying Report
**Date**: YYYY-MM-DD
**Project**: <project_name>
## Directory Changes
- Moved X files to conventional directories
- Created Y new directories
- Archived Z deprecated files
## README Updates
- Updated W stale READMEs
- Fixed X broken links
- Verified Y code examples
## Config Cleanup
- Consolidated X duplicate settings
- Flagged Y hardcoded secrets for removal
- Documented Z config drift issues
## Files Archived
See ARCHIVE_LOG.md for full list (Z files).
## Naming Convention Fixes
- Renamed X files to match conventions
- Documented Y exceptions
## Escalations
- [Config drift requiring devops review]
- [Hardcoded secrets requiring security audit]
得:報存於 TIDYING_REPORT.md
敗:(不適——無論生報)
驗
整後:
- 諸檔於常目
- README 中無斷鏈
- README 例驗行
- 配檔察密
- 棄檔藏含文
- 名規一
- git 史留(用
git mv、非mv) - 移後測仍過
忌
-
斷相對入:移檔斷相對入路。更諸參或用絕對入
-
失 git 史:用
mv而非git mv失史。常用 git 為移 -
過組:建多嵌目使遊難。保平至繁需構
-
刪代藏:直刪失復。常先藏除非確
-
忽語規:施己好於語標。守既規
-
不更文:移檔不更 README 路使文斷
參
- clean-codebase — 除死碼、修 lint 警
- repair-broken-references — 移後修鏈與入
- escalate-issues — 繁配患路至專
- devops/config-management — 進配合
- compliance/documentation-audit — 全文覆
GitHub 저장소
연관 스킬
qmd
개발qmd는 BM25, 벡터 임베딩, 재순위화를 결합한 하이브리드 검색을 통해 로컬 파일을 색인화하고 검색할 수 있는 로컬 검색 및 색인화 CLI 도구입니다. 명령줄 사용과 Claude 통합을 위한 MCP(Model Context Protocol) 모드를 모두 지원합니다. 이 도구는 임베딩에 Ollama를 사용하고 색인을 로컬에 저장하여 터미널에서 직접 문서나 코드베이스를 검색하는 데 이상적입니다.
subagent-driven-development
개발이 스킬은 각 독립적인 작업마다 새로운 하위 에이전트를 배치하고 작업 사이에 코드 리뷰를 진행하여 구현 계획을 실행합니다. 이 리뷰 프로세스를 통해 품질 게이트를 유지하면서 빠른 반복 작업을 가능하게 합니다. 동일한 세션 내에서 대부분 독립적인 작업을 진행할 때 내장된 품질 검증과 함께 지속적인 진행을 보장하기 위해 사용하세요.
mcporter
개발mcporter 스킬은 개발자가 Claude에서 직접 Model Context Protocol(MCP) 서버를 관리하고 호출할 수 있도록 합니다. 이 스킬은 사용 가능한 서버를 나열하고, 인수를 사용해 해당 서버의 도구를 호출하며, 인증 및 데몬 생명주기를 처리하는 명령어를 제공합니다. 개발 워크플로우에서 MCP 서버 기능을 통합하고 테스트할 때 이 스킬을 사용하세요.
adk-deployment-specialist
개발이 스킬은 A2A 프로토콜을 사용하여 Vertex AI ADK 에이전트를 배포하고 오케스트레이션하며, AgentCard 검색, 작업 제출, 코드 실행 샌드박스 및 메모리 뱅크와 같은 지원 도구를 관리합니다. Python, Java 또는 Go 언어로 순차, 병렬 또는 루프 오케스트레이션 패턴을 갖춘 다중 에이전트 시스템 구축을 가능하게 합니다. Google Cloud에서 ADK 에이전트 배포 또는 에이전트 워크플로우 오케스트레이션을 요청받았을 때 사용하세요.
