JasonColapietro/suede-creator-skills / skills/suede-graph-flo-xr
suede-graph-flo-xr
VerifiedUse when a consequential multi-file task needs serious compute and independent testing. Run competing design, adversarial review, and QA lanes against one implementation; use Light, Standard, or Deep and return reproducible evidence. Try “Pressure-test two fixes for duplicate bookings.” Compare designs when there is more than one plausible fix; build only one in an isolated worktree. NOT FOR: bulk worker work, existing-diff review, CI setup, or copy-only work.
workflows/helpers/diff-digest.cjs
View on GitHub// Auto-extracted from suede-graph-flo-xr.js inline node -e scripts. The splice keeps the
// original -e argv convention: process.argv[1] is the first user argument.
process.argv.splice(1,1);
const {execFileSync}=require("node:child_process");const {createHash}=require("node:crypto");const fs=require("node:fs"),path=require("node:path"),root=fs.realpathSync(path.resolve(process.argv[1])),inside=value=>value===root||value.startsWith(root+path.sep),base=process.argv[2],files=JSON.parse(Buffer.from(process.argv[3],"base64").toString("utf8"));if(!Array.isArray(files)){process.stderr.write("reported files must be an array");process.exit(1)}let diff;try{diff=execFileSync("git",["-C",root,"diff","--binary",base],{encoding:null,maxBuffer:16*1024*1024})}catch(error){process.stderr.write(error.stderr||String(error||"git diff failed"));process.exit(Number.isInteger(error.status)?error.status:1)}const hash=createHash("sha256").update("git-diff\0").update(diff);for(const file of [...new Set(files)].sort()){const full=path.resolve(root,file);if(!inside(full)){process.stderr.write("reported file escapes worktree");process.exit(1)}hash.update("\0file\0"+file+"\0");let stat;try{stat=fs.lstatSync(full)}catch(error){if(error&&error.code==="ENOENT"){hash.update("missing");continue}throw error}if(stat.isSymbolicLink()||!stat.isFile()){process.stderr.write("reported file is not a regular file: "+file);process.exit(1)}const canonical=fs.realpathSync(full);if(!inside(canonical)){process.stderr.write("reported file resolves outside worktree: "+file);process.exit(1)}hash.update("regular\0"+String(stat.mode&0o777)+"\0"+String(stat.size)+"\0").update(fs.readFileSync(canonical))}process.stdout.write(hash.digest("hex")+"\n")
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |