`/trailofbits:config` installs files with WebFetch, which cannot transfer them intact
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
Direzione di ricerca
Inizia da .claude/commands/trailofbits/config.md, quindi confronta il relativo elenco di fetch e il menu dei componenti con README.md, inclusi i percorsi di installazione a cui viene fatto riferimento. Controlla che i file elencati e settings.json contengano intatti i requisiti di trasferimento, verifica il percorso effettivo del file di comando, merge-dependabot.md e il template MCP. Il lavoro è completato quando l’installer fa riferimento a file validi del repository, li trasferisce senza corromperne il contenuto e offre solo i componenti disponibili.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
.claude/commands/trailofbits/config.md:5 instructs:
Fetch each file from GitHub using WebFetch.
and :37:
Use WebFetch to download only the files needed for the user's selections from the GitHub URLs above. Extract the raw file content from each response.
WebFetch converts the page to markdown and answers a prompt against it using a small fast model. It's a summarizing reader, not a downloader — there is no guarantee the bytes come back intact. The two files where that matters most are two of the ones it's asked to install:
scripts/statusline.sh— ANSI escape sequences, nested quoting, and ajqprogram using//and@tsvsettings.json— hook commands containing escaped\"inside a shell pipeline inside JSON
Silently corrupting a user's settings.json is about the worst failure mode an installer has available, and README.md:15 makes /trailofbits:config the primary install path for first-time setup.
Suggested fix
Use Bash: curl -fsSL <raw-url> -o <dest>. Or skip the network entirely — the README has already had the user clone the repo, so cp from the working tree. Reserve WebFetch for reading pages, never for transferring files.
Three smaller defects in the same file
- Step 5 self-installs this command file, but it isn't in the fetch list, so no source is defined for its own content — and the path it gets fetched from doesn't exist. This is the root cause of #49: the install tries
commands/trailofbits/config.mdand 404s, because the file actually lives at.claude/commands/trailofbits/config.md. Either move the file or fix the path, and add it to the fetch list. - The fetch list and the component menu both omit
commands/merge-dependabot.md, which the repo ships andREADME.md:548tells you to install. - The menu offers "MCP servers — Context7, Exa, Granola". Granola isn't in
mcp-template.json, so it's an option that can't be fulfilled.
Note that the MCP install step has a separate problem, filed separately: the location it writes to isn't a user-scope MCP config at all.
Found while reviewing the repo against Anthropic's current docs and the installed CLI (2.1.238).
- Lingua principale
- Shell
- Stelle
- 2.1k
- Fork
- 162
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di trailofbits/claude-code-config
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
`~/.mcp.json` is not a user-scope MCP location, so the documented setup silently failsForse già presa @arunimshukla l’ha presa 43 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
git push hook regex false-positives on branch names containing "main"Forse già presa @hbrodin l’ha presa 209 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
trailofbits/claude-code-config#46 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
Tutte le issue di trailofbits/claude-code-config
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ophub/amlogic-s9xxx-armbian#3752 ·
I maintainer di solito rispondono entro 1 giorno
-
prio:low type:chore
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
davidsneighbour/dotfiles#602 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
bug small tooling
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
help wanted priority:low type:chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
crazy-goat/rabbit-stream#904 ·
I maintainer di solito rispondono entro 1 giorno