fuyu12345/terminalgen-skills/config-guess-update-needed-hard
Claude Code and agent skill by fuyu12345/terminalgen-skills
- community
Checking that the SKILL.md file is still in the repository.
Add new architecture mappings to simplified shell-based config.guess scripts while preserving existing behavior and executable state. Use when build/configure detection fails for a newly required CPU architecture.
Install
npx vskill@latest install fuyu12345/terminalgen-skills/config-guess-update-needed-hardSKILL.md
The same SKILL.md was published earlier as fuyu12345/terminalgen-skills/config-guess-update-needed-hard.
Updating Config Guess Architecture Support
When to Use
Use this skill when a legacy config.guess-style shell script fails on a new architecture (for example, riscv64) and tests require:
- a new
casebranch output likeARCH-unknown-linux-gnu, - backward compatibility for existing architectures,
- executable permissions preserved,
- and a captured output file for grading/automation.
Minimal Reliable Workflow
- Inspect current script before editing.
Run sed -n '1,220p' path/to/config.guess and confirm:
- variable used in
case(oftenARCH), - existing architecture branches,
- exact default
*)error branch text/casing.
- Apply a deterministic edit to the `case` block.
Prefer direct, explicit editing (or full-file rewrite for very small scripts) over fragile string substitutions. Insert: ``sh riscv64) echo "riscv64-unknown-linux-gnu" ;; ` immediately before *)`.
- Keep existing branches untouched.
Preserve known working outputs (x86_64, i686, armv7l, aarch64) and default error handling.
- Ensure executability.
Run chmod +x path/to/config.guess even if already executable.
- Validate new architecture path directly.
Run: ``sh MOCK_ARCH=riscv64 path/to/config.guess ` Confirm stdout is exactly riscv64-unknown-linux-gnu`.
- Write required artifact from stdout.
Run: ``sh MOCK_ARCH=riscv64 path/to/config.guess > /workspace/result.txt ``
Common Pitfalls
- Using brittle text-replacement patches that depend on exact spacing/casing.
Observed failures: replacement logic expected different indentation or unsupported vs Unsupported, so no edit occurred and riscv64 still fell into *).
- Targeting the wrong symbol in automated edits.
One failed patch searched for case "$machine" while script used case "$ARCH", so insertion never happened.
- Scripted edit errors masking as “successful execution.”
A Python patch crashed (replace expected at least 2 arguments) and left file unchanged; subsequent commands still ran, giving false progress unless re-checked.
- Not re-reading file after patching.
Missing immediate sed/nl verification allowed silent patch failures to persist.
- Assuming redirection captures failures.
If script errors to stderr, > result.txt can produce an empty file (0 lines), which fails content checks.
Verification Strategy
Use a layered verification sequence tied to observed failure modes:
- Structural verification (file content):
sed -n '1,220p' path/to/config.guess- Confirm
riscv64)branch exists and is inside correctcase.
- Behavior verification (stdout/stderr):
MOCK_ARCH=riscv64 path/to/config.guess- Must print
riscv64-unknown-linux-gnuon stdout, not error on stderr.
- Regression verification for existing architectures:
MOCK_ARCH=x86_64 path/to/config.guessMOCK_ARCH=aarch64 path/to/config.guess- Ensure prior outputs unchanged.
- Artifact verification (grading file):
MOCK_ARCH=riscv64 path/to/config.guess > /workspace/result.txtwc -l /workspace/result.txtmust be1cat /workspace/result.txtmust match exactly.
- Permission verification:
test -x path/to/config.guess && echo executable
All three runs ultimately passed this pattern; the most reliable approach was explicit case insertion/full rewrite plus immediate behavioral checks, not pattern-fragile auto-patching.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinggenerated_skills_10tasks/config_guess_update_needed_hard/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/fuyu12345/terminalgen-skills/config-guess-update-needed-hard)