Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

`/trailofbits:config` installs files with WebFetch, which cannot transfer them intact

Aperta
#56 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
shell
Ambito
cli, tooling

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 a jq program using // and @tsv
  • settings.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.md and 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 and README.md:548 tells 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di trailofbits/claude-code-config

Tutte le issue di trailofbits/claude-code-config

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.