[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EH3ESYKK65RYN0SEKXD8BZ":3,"skill-same:01M7EH3ESYKK65RYN0SEKXD8BZ":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7EH3ESYKK65RYN0SEKXD8BZ","coding-frameworks",null,"Reference frameworks for coding interviews — the UMPIRE method, a pattern taxonomy (two-pointers, sliding-window, BFS\u002FDFS, backtracking, dynamic-programming, graphs, and more), a Big-O cheatsheet, Python idioms, communication guidance, and anti-patterns. Used by the coding commands (\u002Fcoding-explain, \u002Fpractice-coding, \u002Fmock-coding, \u002Fcoding-drill, \u002Fdebrief-coding) to ground teaching and scoring; not read aloud verbatim.","ZoolCoder\u002Fscoutjobs","ZoolCoder","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F30143498?v=4","01M7EH2ETS99V5E6DAEK43G6MF","Abdallah Emad","01M7EH2EVDPGJV2P86K956EWGC",6,"MIT","https:\u002F\u002Fgithub.com\u002FZoolCoder\u002Fscoutjobs\u002Fblob\u002Fdevelop\u002Fskills\u002Fcoding-frameworks\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: coding-frameworks\ndescription: Reference frameworks for coding interviews — the UMPIRE method, a pattern taxonomy (two-pointers, sliding-window, BFS\u002FDFS, backtracking, dynamic-programming, graphs, and more), a Big-O cheatsheet, Python idioms, communication guidance, and anti-patterns. Used by the coding commands (\u002Fcoding-explain, \u002Fpractice-coding, \u002Fmock-coding, \u002Fcoding-drill, \u002Fdebrief-coding) to ground teaching and scoring; not read aloud verbatim.\nlicense: MIT\nmetadata:\n  source: https:\u002F\u002Fgithub.com\u002Fkirilxd\u002Fswe-interview-coach\n  vendored-by: scoutjobs\n---\n\n# Coding Frameworks\n\n## UMPIRE method\n\nThe default scaffold for a 35-45 minute algorithmic question — the coding analog of RESHADED. Six phases, run top to bottom: **U**nderstand, **M**atch, **P**lan, **I**mplement, **R**eview, **E**valuate. The signal an interviewer scores is the process, not just a passing solution — narrate every phase transition out loud. The single most common failure is jumping straight to Implement; the first three phases are where senior signal lives.\n\n### Understand\n\n- Restate the problem in your own words and get the interviewer to confirm before touching the keyboard.\n- Ask the constraint questions that change the algorithm: input size (`n` up to 10? 10^5? 10^9?), value ranges (negatives? overflow?), duplicates, empty\u002Fsingle-element input, sorted-ness, and the return shape (index vs value, in-place vs new, all answers vs one). Then work one tiny example by hand so you and the interviewer share the same notion of \"correct\".\n\n**Weak:** \"Two-sum, got it — I'll loop and check pairs.\" (Never asked sorted-ness, duplicates, or indices-vs-values.)\n**Strong:** \"Restating: return the *indices* of the two numbers summing to target. Exactly one solution? Negatives or duplicates? Is `n` up to 10^5? Can I reuse an element? Good — indices, one solution, unsorted, no reuse.\"\n\n### Match\n\n- Name the pattern this problem resembles before designing anything: \"pair summing to a target in a sorted array → two-pointers\"; \"longest window under a constraint → sliding-window\". Recognition is mostly pattern-matching on input shape and asked-for output — say the candidate pattern aloud; being wrong out loud is cheap and invites a hint.\n\n**Weak:** Silently starts writing nested loops with no name for what they're doing.\n**Strong:** \"This smells like sliding-window: contiguous subarray, longest-under-a-constraint. If the window invariant doesn't hold I'll fall back to prefix-sum + hashmap.\"\n\n### Plan\n\n- State the approach AND its time\u002Fspace complexity BEFORE writing code. This is the phase candidates skip and lose the most points on.\n- Start from the brute force, name its cost, then state the optimization and its cost — \"brute force is O(n²); with a hashmap I get O(n) time, O(n) space\". Sketch the data structures and the core loop in words; get a nod before implementing.\n\n**Weak:** Starts typing immediately and discovers the approach is O(n²) only when the interviewer asks about scale.\n**Strong:** \"Plan: one pass, a hashmap of value → index; for each `x` check if `target - x` was seen. O(n) time, O(n) space. Brute force is O(n²); the hashmap trades space for the inner loop.\"\n\n### Implement\n\n- Write the plan you just stated — no improvising a different algorithm mid-stream.\n- Code in small testable chunks, narrating as you go; use clear names and handle the edge cases you surfaced in Understand as you reach them. If you get stuck, say what you're stuck on rather than going silent — a voiced partial idea is recoverable signal.\n\n**Weak:** Codes in silence for five minutes, then presents a wall of code that doesn't compile.\n**Strong:** \"I'll set up the hashmap, then the single pass — lookup before insert so I don't match an element with itself…\" (typing, narrating, names readable).\n\n### Review\n\n- Dry-run the code by hand on a small input — trace variables line by line, out loud. Don't claim it works; show it.\n- Then run it on at least one edge case you identified earlier (empty, single element, duplicates, all-negative, cycle\u002Foverflow), and fix bugs you find by reasoning — not by randomly mutating lines until the example passes.\n\n**Weak:** \"I think that's right.\" (No trace, no edge case.)\n**Strong:** \"Trace `[2,7,11], target 9`: i=0 store 2→0; i=1 need 2, hit → return [0,1]. Edge case `[]` → loop never runs, returns []. Correct.\"\n\n### Evaluate\n\n- State the final time and space complexity explicitly, separating auxiliary space from output and recursion-stack space. Then name the next optimization or the tradeoff you'd revisit with more time, even if you wouldn't implement it (\"O(n) time now; if memory were tight, two-pointers on a sorted copy gives O(1) extra space at O(n log n) time\").\n\n**Weak:** \"Done.\" (No complexity, no next step.)\n**Strong:** \"Final: O(n) time, O(n) space for the map. If the input were pre-sorted, two-pointers gives O(1) extra space at O(n) time. The space-for-time trade is worth it on unsorted input.\"\n\n## Pattern taxonomy\n\nOne section per pattern (recognition cues, Python template, complexity, classic problems, pitfalls) lives in `patterns.md` next to this file. Read only the section of the pattern at hand, never the whole file.\n\n## Big-O and Python idioms\n\nThe Big-O cheatsheet (reading complexity off code, standard operation costs, space, amortized analysis) and the Python idioms live in `complexity.md` next to this file. Read it when scoring complexity or reviewing Python code.\n\n## Communication\n\nThe transcript is scored, not just the final code — narrate throughout.\n\n- **State approach and complexity before coding.** Say the algorithm and its time\u002Fspace in the Plan phase; never let the interviewer discover the approach by reading your code.\n- **Narrate tradeoffs as you choose.** \"I'll use a hashmap — that's O(n) space but turns the inner loop into an O(1) lookup\" beats silently picking a structure.\n- **Test out loud.** In Review, dry-run a concrete input and an edge case aloud, tracing variables — demonstrate correctness instead of asserting it.\n- **Announce final complexity.** Close every solution by stating its time and space and naming the next optimization, so the interviewer hears the loop close.\n- When stuck, **think out loud** — voice the partial idea and the obstacle; a hint usually follows. Silence reads as being lost.\n\n## Anti-patterns\n\n- **Coding before clarifying constraints** — typing before asking about input size, value ranges, duplicates, empties, and return shape; the algorithm often hinges on an unasked question.\n- **Never stating complexity** — solving without ever saying the time\u002Fspace cost, so the interviewer can't tell you understand what you wrote.\n- **Never testing** — declaring \"done\" with no dry-run; bugs that a 30-second trace would catch sink the solution.\n- **Premature optimization** — reaching for a clever O(n) trick before a correct brute force exists; a working O(n²) you can optimize beats a broken O(n) you can't finish.\n- **Silent debugging** — mutating lines at random until the example passes, instead of reasoning about why it's wrong; the interviewer can't follow and you usually re-break it.\n- **Unacknowledged brute force** — presenting the naive solution as if it were the intended one, with no \"this is my O(n²) baseline; here's how I'd improve it\".\n- **Neglecting edge cases** — no handling for empty, single-element, duplicates, negatives, integer overflow, or cycles; these are the inputs interviewers test first.\n- **Freezing silently** — going quiet when stuck instead of voicing a partial approach and the specific obstacle; an interviewer can hint on a spoken idea but not on silence.\n","# Coding Frameworks\n\n## UMPIRE method\n\nThe default scaffold for a 35-45 minute algorithmic question — the coding analog of RESHADED. Six phases, run top to bottom: **U**nderstand, **M**atch, **P**lan, **I**mplement, **R**eview, **E**valuate. The signal an interviewer scores is the process, not just a passing solution — narrate every phase transition out loud. The single most common failure is jumping straight to Implement; the first three phases are where senior signal lives.\n\n### Understand\n\n- Restate the problem in your own words and get the interviewer to confirm before touching the keyboard.\n- Ask the constraint questions that change the algorithm: input size (`n` up to 10? 10^5? 10^9?), value ranges (negatives? overflow?), duplicates, empty\u002Fsingle-element input, sorted-ness, and the return shape (index vs value, in-place vs new, all answers vs one). Then work one tiny example by hand so you and the interviewer share the same notion of \"correct\".\n\n**Weak:** \"Two-sum, got it — I'll loop and check pairs.\" (Never asked sorted-ness, duplicates, or indices-vs-values.)\n**Strong:** \"Restating: return the *indices* of the two numbers summing to target. Exactly one solution? Negatives or duplicates? Is `n` up to 10^5? Can I reuse an element? Good — indices, one solution, unsorted, no reuse.\"\n\n### Match\n\n- Name the pattern this problem resembles before designing anything: \"pair summing to a target in a sorted array → two-pointers\"; \"longest window under a constraint → sliding-window\". Recognition is mostly pattern-matching on input shape and asked-for output — say the candidate pattern aloud; being wrong out loud is cheap and invites a hint.\n\n**Weak:** Silently starts writing nested loops with no name for what they're doing.\n**Strong:** \"This smells like sliding-window: contiguous subarray, longest-under-a-constraint. If the window invariant doesn't hold I'll fall back to prefix-sum + hashmap.\"\n\n### Plan\n\n- State the approach AND its time\u002Fspace complexity BEFORE writing code. This is the phase candidates skip and lose the most points on.\n- Start from the brute force, name its cost, then state the optimization and its cost — \"brute force is O(n²); with a hashmap I get O(n) time, O(n) space\". Sketch the data structures and the core loop in words; get a nod before implementing.\n\n**Weak:** Starts typing immediately and discovers the approach is O(n²) only when the interviewer asks about scale.\n**Strong:** \"Plan: one pass, a hashmap of value → index; for each `x` check if `target - x` was seen. O(n) time, O(n) space. Brute force is O(n²); the hashmap trades space for the inner loop.\"\n\n### Implement\n\n- Write the plan you just stated — no improvising a different algorithm mid-stream.\n- Code in small testable chunks, narrating as you go; use clear names and handle the edge cases you surfaced in Understand as you reach them. If you get stuck, say what you're stuck on rather than going silent — a voiced partial idea is recoverable signal.\n\n**Weak:** Codes in silence for five minutes, then presents a wall of code that doesn't compile.\n**Strong:** \"I'll set up the hashmap, then the single pass — lookup before insert so I don't match an element with itself…\" (typing, narrating, names readable).\n\n### Review\n\n- Dry-run the code by hand on a small input — trace variables line by line, out loud. Don't claim it works; show it.\n- Then run it on at least one edge case you identified earlier (empty, single element, duplicates, all-negative, cycle\u002Foverflow), and fix bugs you find by reasoning — not by randomly mutating lines until the example passes.\n\n**Weak:** \"I think that's right.\" (No trace, no edge case.)\n**Strong:** \"Trace `[2,7,11], target 9`: i=0 store 2→0; i=1 need 2, hit → return [0,1]. Edge case `[]` → loop never runs, returns []. Correct.\"\n\n### Evaluate\n\n- State the final time and space complexity explicitly, separating auxiliary space from output and recursion-stack space. Then name the next optimization or the tradeoff you'd revisit with more time, even if you wouldn't implement it (\"O(n) time now; if memory were tight, two-pointers on a sorted copy gives O(1) extra space at O(n log n) time\").\n\n**Weak:** \"Done.\" (No complexity, no next step.)\n**Strong:** \"Final: O(n) time, O(n) space for the map. If the input were pre-sorted, two-pointers gives O(1) extra space at O(n) time. The space-for-time trade is worth it on unsorted input.\"\n\n## Pattern taxonomy\n\nOne section per pattern (recognition cues, Python template, complexity, classic problems, pitfalls) lives in `patterns.md` next to this file. Read only the section of the pattern at hand, never the whole file.\n\n## Big-O and Python idioms\n\nThe Big-O cheatsheet (reading complexity off code, standard operation costs, space, amortized analysis) and the Python idioms live in `complexity.md` next to this file. Read it when scoring complexity or reviewing Python code.\n\n## Communication\n\nThe transcript is scored, not just the final code — narrate throughout.\n\n- **State approach and complexity before coding.** Say the algorithm and its time\u002Fspace in the Plan phase; never let the interviewer discover the approach by reading your code.\n- **Narrate tradeoffs as you choose.** \"I'll use a hashmap — that's O(n) space but turns the inner loop into an O(1) lookup\" beats silently picking a structure.\n- **Test out loud.** In Review, dry-run a concrete input and an edge case aloud, tracing variables — demonstrate correctness instead of asserting it.\n- **Announce final complexity.** Close every solution by stating its time and space and naming the next optimization, so the interviewer hears the loop close.\n- When stuck, **think out loud** — voice the partial idea and the obstacle; a hint usually follows. Silence reads as being lost.\n\n## Anti-patterns\n\n- **Coding before clarifying constraints** — typing before asking about input size, value ranges, duplicates, empties, and return shape; the algorithm often hinges on an unasked question.\n- **Never stating complexity** — solving without ever saying the time\u002Fspace cost, so the interviewer can't tell you understand what you wrote.\n- **Never testing** — declaring \"done\" with no dry-run; bugs that a 30-second trace would catch sink the solution.\n- **Premature optimization** — reaching for a clever O(n) trick before a correct brute force exists; a working O(n²) you can optimize beats a broken O(n) you can't finish.\n- **Silent debugging** — mutating lines at random until the example passes, instead of reasoning about why it's wrong; the interviewer can't follow and you usually re-break it.\n- **Unacknowledged brute force** — presenting the naive solution as if it were the intended one, with no \"this is my O(n²) baseline; here's how I'd improve it\".\n- **Neglecting edge cases** — no handling for empty, single-element, duplicates, negatives, integer overflow, or cycles; these are the inputs interviewers test first.\n- **Freezing silently** — going quiet when stuck instead of voicing a partial approach and the specific obstacle; an interviewer can hint on a spoken idea but not on silence.\n",{"name":5,"license":15,"metadata":24,"description":7},{"source":25,"vendored-by":26},"https:\u002F\u002Fgithub.com\u002Fkirilxd\u002Fswe-interview-coach","scoutjobs","develop","a2a699320a102692a00fb2f411b51d4d3d83862a","skills\u002Fcoding-frameworks",1,"https:\u002F\u002Fgithub.com\u002FZoolCoder\u002Fscoutjobs","https:\u002F\u002Fzoolcoder.github.io\u002Fscoutjobs\u002F","https:\u002F\u002Fgithub.com\u002FZoolCoder","2026-11-08 11:06:02",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add ZoolCoder\u002Fscoutjobs --skill coding-frameworks",{"tool":41,"command":42},"bunx","bunx skills add ZoolCoder\u002Fscoutjobs --skill coding-frameworks",{"tool":44,"command":45},"pnpm","pnpm dlx skills add ZoolCoder\u002Fscoutjobs --skill coding-frameworks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FZoolCoder\u002Fscoutjobs\u002Fblob\u002Fdevelop\u002Fskills\u002Fcoding-frameworks\u002FSKILL.md",true,[49,55],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"complexity.md","REFERENCE","参考文档",4490,"https:\u002F\u002Fgithub.com\u002FZoolCoder\u002Fscoutjobs\u002Fblob\u002Fdevelop\u002Fskills\u002Fcoding-frameworks\u002Fcomplexity.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"patterns.md",15308,"https:\u002F\u002Fgithub.com\u002FZoolCoder\u002Fscoutjobs\u002Fblob\u002Fdevelop\u002Fskills\u002Fcoding-frameworks\u002Fpatterns.md",[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7EH81B8CX636V5ZQX8V1539","weekly-review","Weekly retrospective on the job search - funnel movement, response rates, what worked, stale applications to close, decisions to learn from, learning progress - and a plan for next week. Runs learn-preferences as part of it. Use on Fridays or Mondays, or when the user says \"weekly review\", \"how is my search going\", \"retro\".","https:\u002F\u002Fgithub.com\u002FZoolCoder\u002Fscoutjobs\u002Fblob\u002Fdevelop\u002Fskills\u002Fweekly-review\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7EH7VADGDNPV740AA05VCCX","upskill","Finds skill gaps between the user's profile and the jobs they track (especially ones they skipped, lost, or scored low on), ranks gaps by market demand, builds a learning plan with concrete resources, and tracks progress in ScoutJobs. Use when the user says \"what should I learn\", \"skill gaps\", \"learning plan\", \"upskill\", or weekly.","https:\u002F\u002Fgithub.com\u002FZoolCoder\u002Fscoutjobs\u002Fblob\u002Fdevelop\u002Fskills\u002Fupskill\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7EH7MHWK61TGDENTP58D3AK","system-design-frameworks","Reference frameworks (RESHADED, the 4S shorthand), capacity estimation cheatsheet, core building blocks (load balancing, caching, queues, sharding, replication, CAP), common tradeoffs, and anti-patterns for system design interview prep. Use when running \u002Fmock-sysdesign, \u002Fpractice-sysdesign, \u002Fsysdesign-explain, or \u002Fdebrief-sysdesign, or whenever discussing architecture, capacity estimation, or design tradeoffs.","https:\u002F\u002Fgithub.com\u002FZoolCoder\u002Fscoutjobs\u002Fblob\u002Fdevelop\u002Fskills\u002Fsystem-design-frameworks\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7EH7ETMQTZEKTF7F3SRJ27Q","sysdesign-interview","Senior-engineer persona for system design mock interviews (requirements, estimation, high-level design, deep dives, curveballs). Used by the mock-interview skill; text-only, no canvas.","https:\u002F\u002Fgithub.com\u002FZoolCoder\u002Fscoutjobs\u002Fblob\u002Fdevelop\u002Fskills\u002Fsysdesign-interview\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7EH7A9HSWC8JP4VH4YJEPDF","scoutjobs-setup","First-run onboarding for ScoutJobs. Builds the user's profile.md from their CV, LinkedIn text or a short interview, records stated preferences, checks the scoutjobs CLI, and explains the daily loop. Use when the user says \"set up scoutjobs\", \"onboard me\", \"start my job search\", or when ~\u002F.scoutjobs\u002Fprofile.md is missing or still the empty template.","https:\u002F\u002Fgithub.com\u002FZoolCoder\u002Fscoutjobs\u002Fblob\u002Fdevelop\u002Fskills\u002Fscoutjobs-setup\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7EH75431XR79ZPAHEC2RZGE","salary-negotiation-prep","Researches market rates for the role and location, builds a negotiation strategy and counter-offer scripts from the user's priorities. Use when the user says \"negotiate\", \"is this salary fair\", \"how do I ask for more\", \"counter-offer\", or after an offer is logged.","https:\u002F\u002Fgithub.com\u002FZoolCoder\u002Fscoutjobs\u002Fblob\u002Fdevelop\u002Fskills\u002Fsalary-negotiation-prep\u002FSKILL.md",[],[]]