think-in-code

Solid

Use when analyzing multiple files, auditing a codebase, scanning dependencies, or counting lines -- one Bash pipeline beats N sequential Read calls.

Data & Documents 25 stars 4 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
47
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

<objective> Think-in-Code replaces wasteful multi-Read loops with a single compact shell pipeline whenever the task is "for each file in a set, compute/extract X, then aggregate" -- file-size audits, multi-file symbol grep, dependency listing with versions, error-log scanning, lines-of-code-by-extension. Reserve `Read` for targeted inspection of one specific file already known to matter. The reduction is typically ~60x in tokens consumed versus reading each file individually and tallying manually. </objective> # Think-in-Code Skill ## Principle **1 Bash script = N Read calls avoided.** When you'd read 10 files sequentially to extract a summary, you waste tokens loading full contents into context. Instead: 1 shell pipeline returns the compact aggregated result. Heuristic: if your task is "for each file in set, compute/extract X, then aggregate" → write the script. Reserve Read for *targeted inspection* of a specific file you already know matters. ## 5 Runnable Patterns ### 1. File size audit (> 100 lines violations) ```bash find . -type f \( -name "*.ts" -o -name "*.tsx" -o -name "*.py" -o -name "*.php" \) \ -not -path "*/node_modules/*" -not -path "*/vendor/*" \ | xargs wc -l 2>/dev/null \ | awk '$1 > 100 && $2 != "total" {print $1, $2}' \ | sort -rn | head -20 ``` ### 2. Multi-grep symbols (compact JSON) ```bash rg --json -g '*.ts' -g '*.tsx' 'export (function|class|const) (\w+)' src/ \ | jq -r 'select(.type=="match") | "\(.data.path.text):\(.data.line_n...

Details

Author
fusengine
Repository
fusengine/agents
Created
8 months ago
Last Updated
6 days ago
Language
CSS
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category