scan-projects
Skill2 starsChanged 5 months agoMITView on GitHub
Scan all valid software projects (including Docker/docker-compose projects) under a configured directory and output a Markdown list for manual filtering. Triggers when the user says "scan projects", "list my projects", "find all projects", "掃描專案", or "列出所有專案".
3 other projects use a version of this.
Adopted by
Most recently taken up by
- marinvch/Cortextheir own version, first seen Oct 1, 2026
- con/skillstheir own version, first seen Sep 3, 2026
- Goodsmileduck/agents-md-orchestratortheir own version, first seen Jun 7, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- con/skills★ 2same name
- marinvch/Cortex★ 1same name
- Goodsmileduck/agents-md-orchestrator★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- batch-initSkill
- generate-tech-profile-jsonSkill
- generate-tech-profileSkill
- get-latest-versionSkill
- init-project-docSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 7 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Read profile.config.json from the current working directory.
- Very specific: line 28
Use scan_root from config (or the user-specified override)
- Very specific: line 29
Verify the directory exists with ls
- Distinctive: line 32
If the current directory matches any marker → treat as project root, do not recurse further
- Distinctive: line 33
If no match → continue scanning subdirectories, max depth of 4
- Distinctive: line 36
Use the following bash script:
- Very specific: line 86
Description: read description from package.json, or first non-heading line of README.md (max 80 chars)
- Very specific: line 88
Doc file: check if <dir>/<doc_filename> exists (config doc_filename, default CLAUDE.md) — show ✅ if yes, ❌ if no
- Very specific: line 89
Version: if the doc file exists, read skill_version from frontmatter (e.g.
- Very specific: line 92
Read the existing projects-list.md (if it exists) and parse all Path values already present:
- Distinctive: line 95
If no new projects found → report "no new projects found" and stop (do not modify the file)
- Distinctive: line 98
Do not overwrite or rewrite the existing file.
- Very specific: line 100
Read the current highest # index from the existing table
- Very specific: line 107
Update the header line > Found N valid projects to reflect the new total count
- Distinctive: line 108
All existing rows, Active values, descriptions, and ordering are untouched
- Distinctive: line 121
If the root is not the default, remember the user-specified path for this session
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Scan Projects Skill
Goal
Scan all valid software projects under the configured scan_root and output a Markdown report (projects-list.md) for manual filtering.
Step 0: Read config
Read profile.config.json from the current working directory. If missing, tell the user to copy examples/profile.config.example.json to profile.config.json and fill it in, then stop.
scan_root(default~/projectif not set) — expand~to$HOME- A user-specified path argument overrides
scan_rootfor this run
Definition of a Valid Software Project
A directory is considered a valid project root if any of the following markers exist (file or directory):
package.json, Cargo.toml, go.mod, pyproject.toml, requirements.txt, setup.py,
Makefile, pom.xml, build.gradle, CMakeLists.txt, .git, composer.json, Gemfile,
Dockerfile, dockerfile, docker-compose.yml, docker-compose.yaml, compose.yml, compose.yamlExecution Steps
Step 1: Confirm scan root directory
- Use
scan_rootfrom config (or the user-specified override) - Verify the directory exists with
ls
Step 2: Execute scan (recursive, max 4 levels)
- If the current directory matches any marker → treat as project root, do not recurse further
- If no match → continue scanning subdirectories, max depth of 4
- Skip the following subdirectory names:
node_modules,.git,.venv,__pycache__,dist,build,packages
Use the following bash script:
BASE_DIR="<scan_root, ~ expanded to $HOME>"
MAX_DEPTH=4
MARKERS=(
"package.json" "Cargo.toml" "go.mod" "pyproject.toml" "requirements.txt"
"setup.py" "Makefile" "pom.xml" "build.gradle" "CMakeLists.txt" ".git"
"composer.json" "Gemfile" "Dockerfile" "dockerfile"
"docker-compose.yml" "docker-compose.yaml" "compose.yml" "compose.yaml"
)
is_project_root() {
local dir="$1"
for marker in "${MARKERS[@]}"; do
[[ -e "$dir/$marker" ]] && return 0
done
return 1
}
collect_projects() {
local dir="$1"
local depth="$2"
[[ "$depth" -gt "$MAX_DEPTH" ]] && return
if is_project_root "$dir"; then
echo "$dir"
return
fi
while IFS= read -r subdir; do
collect_projects "$subdir" $(( depth + 1 ))
done < <(find "$dir" -mindepth 1 -maxdepth 1 -type d \
! -name "node_modules" ! -name ".git" ! -name ".venv" \
! -name "__pycache__" ! -name "dist" ! -name "build" ! -name "packages")
}
collect_projects "$BASE_DIR" 0Step 3: Collect additional metadata
For each valid project, gather:
- Type tags based on matched markers (multi-select):
- Node.js (
package.json) - Python (
requirements.txt/pyproject.toml/setup.py) - Docker (
Dockerfile/dockerfile) - Docker Compose (
docker-compose.yml/docker-compose.yaml/compose.yml/compose.yaml) - Go (
go.mod), Rust (Cargo.toml), Java (pom.xml/build.gradle) - C/C++ (
CMakeLists.txt), PHP (composer.json), Ruby (Gemfile) - Git (
.git)
- Node.js (
- Description: read
descriptionfrompackage.json, or first non-heading line ofREADME.md(max 80 chars) - Last commit:
git -C <dir> log -1 --format="%ar" 2>/dev/null(show—for non-Git projects) - Doc file: check if
<dir>/<doc_filename>exists (configdoc_filename, defaultCLAUDE.md) — show ✅ if yes, ❌ if no - Version: if the doc file exists, read
skill_versionfrom frontmatter (e.g."2.0"); show—if missing or field not present
Step 3.5: Diff against existing projects-list.md
Read the existing projects-list.md (if it exists) and parse all Path values already present:
- Build a set of existing paths from every table row
- From the scanned results, keep only paths NOT already in the file — these are new projects
- If no new projects found → report "no new projects found" and stop (do not modify the file)
Step 4: Append new projects to projects-list.md
Do not overwrite or rewrite the existing file. Only append new rows.
- Read the current highest
#index from the existing table - For each new project (not already listed), append a new table row using the same format:
| N | ✅ | project-name | ~/project/... | Type | last commit | ✅/❌ | version | description |- Update the header line
> Found N valid projectsto reflect the new total count - All existing rows, Active values, descriptions, and ordering are untouched
New projects default to ✅ for "Active".
Step 5: Report results
- Tell the user how many new projects were added
- List the new project names
- Remind the user they can set "Active" to ❌ for projects they don't want to track
Notes
- A directory that matches a marker is treated as a project root — do not recurse into it (avoids duplicate listing of submodules)
- Max scan depth is 4 levels from the root
- Existing rows are never modified — only new rows are appended
- If the root is not the default, remember the user-specified path for this session
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

