project-structure
Skill7.2k starsChanged 2 months agoMITView on GitHub
Generate a single-file compressed symbol map of a TypeScript or Swift repository — files, exported symbols, typed signatures, plugin boundaries — sized to fit an LLM context window. Use for whole-project reasoning: duplication hunting, refactor planning, architecture recon, or feeding another agent a full-project map.
9 other projects use a version of this.
Trending
Less talk lately.about the whole repository
Most recently taken up by
- modelcontextprotocol/inspectortheir own version, first seen Sep 23, 2026
- frostney/pascal-mcp-sdktheir own version, first seen Aug 9, 2026
- flpbalada/fb-skillstheir own version, first seen Aug 3, 2026
- tartinerlabs/skillstheir own version, first seen Jul 26, 2026
- codewithmukesh/dotnet-claude-kittheir own version, first seen Jul 22, 2026
- alyanhaider/system-architecturetheir own version, first seen Jun 19, 2026
Who's talking about steipete/agent-scripts
- waddle-social/waddle“fix(server): accept text/html link previews served with unknown-total range”GitHub · Jun 18, 2026 · 2 reactions
- ArchonVII/github-workflows“Review scripts for potential integration”GitHub · Jun 16, 2026 · 1 reactions
- sator-imaging/suggest-skills“[bot] Generate Manifests”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.steipete.agent-scripts: init at 0.12.0”GitHub · Oct 2, 2026
- sator-imaging/suggest-skills“[bot] Generate Manifests”GitHub · Sep 30, 2026
The biggest 5 of 35 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 35
Talked about on GitHub (35 times).
On GitHub · 35
- Jun 18, 2026fix(server): accept text/html link previews served with unknown-total range — waddle-social/waddle2 reactions · 2 comments
- Jun 16, 2026Review scripts for potential integration — ArchonVII/github-workflows1 reaction
- Oct 3, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Oct 2, 2026agent-skills.github.steipete.agent-scripts: init at 0.12.0 — sudosubin/agents.nix0 reactions
- Sep 30, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
30 more on GitHub
- Sep 24, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 23, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 23, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 19, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 19, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Aug 31, 2026[upstream] chore: refresh upstream skills to 8649e48; graduate one-password to native — novotnyllc/agent-utilities0 reactions
- Aug 29, 2026docs: replace retired gitcrawl gh workflow examples — openclaw/gitcrawl0 reactions · 2 comments
- Aug 25, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 21, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 18, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 14, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 11, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 7, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 4, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 31, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 31, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 28, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 24, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 20, 2026build(deps): bump plugins/steipete-agent-scripts from `e3b05be` to `b7f7269` — mikeastock/dotfiles0 reactions
- Jul 18, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 15, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jul 13, 2026build(deps): bump plugins/steipete-agent-scripts from `e3b05be` to `01e4910` — mikeastock/dotfiles0 reactions · 1 comment
- Jul 10, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Jun 30, 2026feat: Use to triage issues — joeldevz/skynex-pi0 reactions
- Jun 11, 2026research(swarm,review-cycle): live end-to-end proof via computer use as a verification tier (extends #1357) — deftai/directive0 reactions
- Jun 11, 2026feat(triage): contributor trust signals in triage:queue (extends #1318) — deftai/directive0 reactions · 1 comment
- Jun 11, 2026feat(swarm,review-cycle): decision-ready boundary + owner decision brief (human-facing handoff contract) — deftai/directive0 reactions
- May 29, 2026Review steipete/agent-scripts skills for adoption candidates — NodeJSmith/Claudefiles0 reactions
- Apr 2, 2026Skill discovery: alternativas ao fluxo nexus_list + nexus_get — dougss/nexus0 reactions
- Dec 30, 2025agent-scripts — nicholaswilde/homelab0 reactions
Used with
Projects with it also use testing.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
NVIDIASkilltesting
Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.
Also in 3 projects that use this
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- microsoft/agent-framework★ 14ksame name
- modelcontextprotocol/inspector★ 11ksame name
- codewithmukesh/dotnet-claude-kit★ 750same name
- wshaddix/dotnet-skills★ 79same name
- tomo3141592653/ayumu-oss★ 9same name
- flpbalada/fb-skills★ 8same name
- tartinerlabs/skills★ 8same name
- alyanhaider/system-architecture★ 2same name
- frostney/pascal-mcp-sdk★ 2same 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 repository54 other files it gives its agents.
- AGENTS.MDAGENTS.md
- agent-transcriptSkill
- beeperSkill
- browser-useSkill
- clawsweeper-statusSkill
- clickclackSkill
- cloudflare-registrarSkill
- codexbarSkill
- codex-debuggingSkill
- codex-firstSkill
- codex-huge-contextSkill
- create-cliSkill
- discord-clawdSkill
- domain-dns-opsSkill
- fleet-maintenanceSkill
- frontend-designSkill
- github-author-contextSkill
- github-cache-hygieneSkill
- github-deep-reviewSkill
- github-project-triageSkill
- hopper-debuggerSkill
- instruments-profilingSkill
- mac-maintenanceSkill
- maintainer-orchestratorSkill
- markdown-converterSkill
- nano-banana-proSkill
- native-app-performanceSkill
- notcrawlSkill
- npmSkill
- obsidianSkill
- openai-image-genSkill
- openclaw-relaySkill
- oracleSkill
- release-mac-appSkill
- release-tweetsSkill
- remindersSkill
- remote-macSkill
- skill-cleanerSkill
- sonosSkill
- speakingSkill
- ssh-doctorSkill
- swift-concurrency-expertSkill
- swiftui-liquid-glassSkill
- swiftui-performance-auditSkill
- swiftui-view-refactorSkill
- telecrawlSkill
- things-todoSkill
- twilio-smsSkill
- video-transcript-downloaderSkill
- vm-labSkill
- whatsappSkill
- wranglerSkill
- xcode-syncSkill
- xurlSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
When --include is absent, source files sitting directly in repoRoot are scanned too (so pointing repoRoot at a leaf source dir works).
- Distinctive: line 67
Do not bother with dictionary/abbreviation compression: measured on openclaw, total possible savings were 292 tokens (0.15%) — BPE already …
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project Structure
Compress a TS or Swift repo into one map file an agent can load whole. Backed by map.ts next to this file. TS: parse-only TS compiler, no type-check; ~8k files in ~5s; resolves the typescript package from the target repo, falling back to this skill dir. Swift: zero-dependency regex/brace-depth scanner built into map.ts (no typescript needed for pure-Swift repos). Requires Node >= 23.6 (native type stripping) or npx tsx. .ts/.tsx and .swift files are detected by extension; a repo may mix both.
Run
node <this-skill-dir>/map.ts <repoRoot> [flags]<this-skill-dir> is the base directory of this skill as announced when the skill loads (canonical: ~/Projects/agent-scripts/skills/project-structure).
Output: one map file (default project-structure-map.txt in cwd) plus a JSON stats line (files, symbols, bytes, approxTokens) on stdout.
Flags
--out <file>— output path.--mode dense|skeleton|exports|sigs|full— defaultdense.dense: dir-grouped, one line per file:file fn:a,b ty:T cl:C c:x re:./y. Recon tier. File extensions are stripped for compactness, so a same-basename TS and Swift file in one dir share a line prefix (theoretical in practice; grep the repo to disambiguate).skeleton: one symbol per line, names only.exports: exported symbols with full typed signatures, type bodies, first doc-comment line. Refactor-decision tier. TS-only — Swift files fall back to their dense-style line (no fabricated signatures).sigs: exports but type/interface bodies collapsed to member names (only ~10% smaller than exports; rarely worth it). TS-only, same Swift fallback.full: exports + non-exported top-level symbols (markedinternal; internal consts appear only when function-valued or explicitly typed — untyped internal consts are filtered as noise). TS-only, same Swift fallback.
--include a,b,c— paths to map, relative to repoRoot (default: all top-level dirs, minus skips/boundaries). Accepts nested paths, not just top-level dirs:--include src/channels/turnmaps exactly that subtree. Headers stay repoRoot-relative, so running from repo root with--include <subsystem>is the recommended way to map a subsection.--boundary x,y— dirs listed as boundary index only: child module names + one-linepackage.jsondescriptions, no symbol content. Use for plugin/extension trees.--include-tests— keep test files and test-support infra (default: both excluded; Swift test detection is path-based:Tests?/dirs and*Tests.swift).--no-docs— strip doc comments (saves ~13% on typed modes).--fn-consts-only— drop non-function const exports (on Swift files: drops every let/var symbol — closure-valued consts are indistinguishable without type info). Caution: silently drops files whose only exports are consts (plugin definition objects, schemas, registries). Prefer keeping consts indense(names are cheap).--re-counts— collapse re-export path lists to a count (dense; saves ~10%).--max-per-kind N— cap each symbol-kind list per file with+noverflow marker (dense; 10–12 is safe).--members— Swift only (ignored for TS files): additionally emit one-level-deep methods/properties asType.member; extension members appear under their target type.--public-only— Swift only (ignored for TS files): keep only symbols whose written access isopen/public.
When --include is absent, source files sitting directly in repoRoot are scanned too (so pointing repoRoot at a leaf source dir works); with --include, only the listed paths are walked.
Swift specifics
Zero-dependency line scanner (lexical masking of comments/strings + brace-depth tracking), validated 1:1 against SourceKitten on 1,850 files across two real repos (100% top-level symbol agreement) at ~100× SourceKitten's speed. Known limitations (accepted tradeoffs of the parserless design): one declaration per line is assumed — a member on the same line as its type (struct Box { var v = 1 }) or a second semicolon-separated declaration is not emitted; bare /…/ regex literals are not masked (lexically ambiguous with division), so a brace inside one can desync depth for the rest of that file — extended #/…/# literals are masked correctly; comments or raw/multiline literals nested inside string interpolations, emoji identifiers, and #if branches whose alternative headers declare differently named containers are best-effort (same-name platform-split containers work). Kinds: fn = func (incl. operator funcs); cl = class, actor; ty = struct, enum, protocol, typealias, macro, and extensions as extension:TargetType; c = let/var. Visibility is appended per symbol as [open]/[public]/[package]/[private]/[fileprivate]; internal (Swift's default) is deliberately untagged to save map bytes. Tags reflect written access; members of protocols/extensions without a written modifier inherit the container's access. Swift puts most code inside types, so the default top-level map is thin (median ~2 symbols/file) — reach for --members when method-level recon matters.
Sizing
TS (reference: openclaw, ~7M LOC, ~14k source files; o200k tokens; byte/4 estimate runs ~5–15% high — verify with a real tokenizer when near a budget):
- exports, whole repo: ~2.5M tokens — never fits; scope typed maps to one subsystem.
- exports, one subsystem (e.g. src/channels, 257 files): ~79k.
- skeleton, whole repo: ~717k (fits 1M-class windows).
- dense, whole repo: ~430k real.
- dense,
src+packages+ extensions boundary,--re-counts --max-per-kind 12: ~218k real. - dense,
srconly + boundaries,--re-counts --max-per-kind 10: ~197k real (fits a 200k window).
Swift (reference: Peekaboo, 1,122 source files after test exclusion; byte/4 estimates):
- dense top-level: ~34k tokens (3,962 symbols).
- dense
--members: ~197k (20,909 symbols) — ~6× top-level. - dense
--public-only: ~12k (1,285 symbols). - dense
--members --public-only: ~74k — the API-surface tier for big Swift repos.
Workflow guidance
- Two-tier: dense whole-repo map for reconnaissance and candidate enumeration; then
--mode exports --include <subsystem>(TS) or--members --include <subsystem>(Swift) for the actual refactor decision. Names alone cannot distinguish duplicates from overloads, facades, or.runtime.tslazy seams — verify every dense-tier finding against typed signatures or source before acting. - Feeding codex CLI: turn input hard-caps at 1,048,576 chars (~260k tokens); pipe the map via stdin. Bigger maps need a direct Responses API call ($codex-huge-context) or a model with a larger window.
- Do not bother with dictionary/abbreviation compression: measured on openclaw, total possible savings were 292 tokens (0.15%) — BPE already compresses repeated identifiers.
- Map findings are leads, not verdicts: spot-verify file paths and claims with grep before acting on any model analysis of a map.
node selftest.mjs(in this skill dir) diffs the mapper against checked-in fixtures for both languages — run it after editingmap.ts.
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.

