[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E35RZV8Z116170W1WNH2TD":3,"skill-same:01M6E35RZV8Z116170W1WNH2TD":63},{"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":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":45,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M6E35RZV8Z116170W1WNH2TD","design-review",null,"Deep design review of Go codebase — naming, structure, consistency, interfaces, error handling. Scores each dimension and provides actionable fixes.","dimetron\u002Fpi-go","dimetron","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F877433?v=4","01M6E34QX9HKYKMWJVZQEPR2Q3","Dmytro Rashko","01M6E34R2A6563XM0PTZE8KPGG",224,"MIT","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002F.pi-go\u002Fskills\u002Fdesign-review\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31],"design","review","design review","go","error handling","structure","deep","error","actionable","naming","consistency","fixes","codebase","2026-11-10 10:12:30",false,"---\nname: design-review\ndescription: >\n  Deep design review of Go codebase — naming, structure, consistency,\n  interfaces, error handling. Scores each dimension and provides actionable fixes.\nmetadata:\n  author: dimetron\n  version: \"1.1\"\n---\n\n# Design Review\n\nPerform a comprehensive design review of the Go codebase. Evaluate code quality, naming conventions, consistency, and architectural patterns. Produce a scored report with actionable improvements.\n\n## When to use\n\nUse this skill when:\n- Auditing overall design quality before a major refactor or release\n- Onboarding to an unfamiliar Go codebase and need a structured assessment\n- Comparing codebase against Go idioms after a period of rapid development\n\nDo NOT use for:\n- Reviewing a single PR or uncommitted diff (use `code-review` instead)\n- Writing new code or fixing bugs\n- Running linters\u002Ftests for CI gating (use `code-review` instead)\n\n### Relationship to code-review\n\n| Aspect | design-review | code-review |\n|--------|--------------|-------------|\n| Scope | Entire codebase or package | Changed files only |\n| Action | Read-only audit, scored report | Fix issues, enforce gates |\n| Focus | Architecture, patterns, idioms | Correctness, coverage, linting |\n| Output | Scorecard + recommendations | Pass\u002Ffail gates + fixes applied |\n\n## Dimensions\n\nScore each dimension 1-10 and provide specific file:line references for issues found.\n\n### 1. Naming Conventions\n- Exported types\u002Ffunctions follow Go conventions (MixedCaps, no underscores)\n- Package names are short, lowercase, singular (not `utils`, `helpers`, `common`)\n- Interface names use `-er` suffix where appropriate (`Reader`, `Writer`)\n- Receiver names are short (1-2 chars), consistent within type\n- Variable names: short in small scopes, descriptive in large scopes\n- Acronyms are all-caps (`ID`, `URL`, `HTTP`, not `Id`, `Url`, `Http`)\n- Test function names follow `TestFuncName_Scenario` pattern\n- Constants use MixedCaps, not SCREAMING_SNAKE\n\n### 2. Package Design\n- Packages have clear, singular responsibility\n- No circular dependencies\n- Internal packages used appropriately for implementation details\n- Package-level doc comments present\n- No God packages (too many responsibilities)\n- Reasonable file sizes (flag files > 500 lines)\n\n### 3. Interface Design\n- Interfaces are small (1-3 methods preferred)\n- Interfaces defined where consumed, not where implemented\n- No unnecessary interface pollution (concrete types are fine)\n- Accept interfaces, return structs\n- `io.Reader`, `io.Writer`, `fmt.Stringer` used where applicable\n\n### 4. Error Handling\n- Errors wrapped with context using `fmt.Errorf(\"...: %w\", err)`\n- Custom error types where callers need to inspect errors\n- No swallowed errors (unchecked `err` returns)\n- Sentinel errors are `var ErrFoo = errors.New(...)` not string comparison\n- Error messages are lowercase, no punctuation, no \"failed to\" prefix\n\n### 5. Concurrency Patterns\n- Goroutines have clear ownership and lifecycle\n- Channels used for communication, mutexes for state\n- `context.Context` propagated correctly\n- No goroutine leaks (all goroutines have exit paths)\n- `sync.WaitGroup` or `errgroup` used for fan-out\n\n### 6. API Consistency\n- Similar operations use similar signatures across packages\n- Config structs vs option functions used consistently\n- Constructor functions follow `NewFoo` pattern\n- Consistent use of pointer vs value receivers within a type\n- Method ordering: constructor, public methods, private methods\n\n### 7. Code Organization\n- One primary type per file (type + methods)\n- Test files mirror source files (`foo.go` \u002F `foo_test.go`)\n- Constants and vars at top of file\n- `init()` functions avoided (or justified)\n- Build tags and platform files follow conventions\n\n### 8. Documentation\n- Exported functions have doc comments starting with function name\n- Package doc comments present\n- Complex algorithms have inline comments explaining *why*\n- No stale\u002Fmisleading comments\n- Examples in tests for complex APIs\n\n## Procedure\n\n1. **Set scope first**:\n   - Determine target scope from command args (`\u002Fdesign-review`, package path, or `--focus`)\n   - Apply default include\u002Fexclude rules from the Scope section\n   - Note any skipped areas explicitly in the report\n\n2. **Scan structure**: Use `Glob` (`**\u002F*.go`) to map the package layout.\n   Use `Shell` with `go list .\u002F...` to enumerate packages and `wc -l` for line counts.\n\n3. **Automated checks**: Run in parallel:\n   - `go vet .\u002F...` — catch common mistakes\n   - `golangci-lint run .\u002F...` (if available) — extended lint checks\n   - Check for `\u002F\u002Fnolint` directives and their justifications\n   - If a tool is unavailable, continue review and mark that check as \"skipped\"\n\n4. **Naming audit**: Use `Grep` to sample each package:\n   - Search for naming violations: pattern `Id[^s]` instead of `ID`, `Url[^s]` instead of `URL`\n   - Use `Read` to check receiver name consistency per type\n   - Verify exported function doc comments\n   - Check package names against conventions\n\n5. **Interface audit**: Use `Grep` for `type \\w+ interface` to find all interface definitions:\n   - Count methods per interface (flag > 5 methods)\n   - Check if interfaces are defined at consumer or producer\n   - Look for interface embedding depth\n\n6. **Error handling audit**: Sample error paths:\n   - `Grep` for unchecked errors: `_, _ =` or bare function calls\n   - Check error wrapping: `%w` vs `%v` vs `%s`\n   - Look for string-based error checking vs sentinel\u002Ftype errors\n\n7. **Consistency audit**: Compare patterns across packages:\n   - Constructor patterns: `Grep` for `func New` across all packages and compare signatures\n   - Config patterns (struct vs options)\n   - Logging patterns (structured vs printf)\n   - Test patterns (table-driven vs individual)\n\n8. **Cross-reference**: Use tooling for efficiency:\n   - Dead code: `Grep` for unexported function definitions, then `Grep` for call sites within the package\n   - Duplicates: compare function signatures across packages\n   - Inconsistent patterns doing the same thing differently\n\n9. **Validate report before output**: Self-check the report against these gates:\n   - Every scored dimension has at least one finding with a `file:line` reference, or an explicit \"no issues found\" note\n   - Every Top 5 item has a before\u002Fafter code snippet or an exact command to run\n   - Key Strengths section has at least 2 entries with file references\n   - Overall score matches the weighted average (recalculate to confirm)\n   - No dimension is scored without evidence — if you can't find evidence, mark `N\u002FA`\n   If any gate fails, fix the report before presenting it.\n\n## Scope\n\n- Default include: `*.go` files in requested scope\n- Default exclude: `vendor\u002F`, `testdata\u002F`, generated files (`\u002F\u002F Code generated`), and protobuf outputs (for example `*.pb.go`) unless explicitly requested\n- Optional focus flags:\n  - `--include-tests` to include test style and coverage patterns in scoring\n  - `--include-generated` to include generated code in analysis\n- If scope is narrowed (for example `internal\u002Ftui`), score only that scope and state this clearly\n\n## Project-Specific Checks (pi-go)\n\nIn addition to general Go review, check:\n- **ADK compliance**: uses `model.LLM`, `tool.Tool`, `session.Service` — no custom abstractions wrapping ADK\n- **Provider pattern**: all providers under `internal\u002Fprovider\u002F` implement the same interface consistently\n- **Tool registration**: tools created via `tool.NewFunctionTool`, registered in `tools.CoreTools()`\n- **Session format**: JSONL append-only, implements `session.Service`\n- **Error retry**: transient LLM errors use `internal\u002Fagent\u002Fretry.go` patterns\n- **TUI conventions**: Bubble Tea v2 imports from `charm.land\u002Fbubbletea\u002Fv2`, not the old `github.com\u002Fcharmbracelet\u002Fbubbletea` path\n- **No external runtime deps**: binary must be self-contained\n- **No `init()` functions**: prefer explicit initialization\n\n## Scoring Model\n\nUse these weights for overall score:\n\n- Naming Conventions: 15%\n- Package Design: 15%\n- Interface Design: 15%\n- Error Handling: 20%\n- Concurrency Patterns: 10%\n- API Consistency: 10%\n- Code Organization: 10%\n- Documentation: 5%\n\nCalibration:\n\n| Score | Meaning |\n|-------|---------|\n| 9-10  | Stdlib\u002Fkubernetes quality — exemplary, publishable as reference |\n| 7-8   | Production quality — minor issues, follows idioms well |\n| 5-6   | Functional — noticeable gaps, inconsistencies, or missing patterns |\n| 3-4   | Below standard — systematic issues, needs refactoring |\n| 1-2   | Problematic — fundamental design issues |\n\nRules:\n\n- Score each dimension `1-10` using the calibration table above\n- Allow `N\u002FA` when a dimension does not apply to the reviewed scope\n- Compute overall as weighted average of applicable dimensions only\n- Round overall score to 1 decimal place\n\n## Output Format\n\nPresent results as a scorecard table, then detailed findings per dimension.\n\n```\n## Scorecard\n\n| Dimension           | Score | Notes                           |\n|---------------------|-------|---------------------------------|\n| Naming Conventions  | X\u002F10  | brief note                      |\n| Package Design      | X\u002F10  | brief note                      |\n| Interface Design    | X\u002F10  | brief note                      |\n| Error Handling      | X\u002F10  | brief note                      |\n| Concurrency         | X\u002F10  | brief note                      |\n| API Consistency     | X\u002F10  | brief note                      |\n| Code Organization   | X\u002F10  | brief note                      |\n| Documentation       | X\u002F10  | brief note                      |\n|---------------------|-------|---------------------------------|\n| **Overall**         | X\u002F10  | weighted average (1 decimal)   |\n\n## Key Strengths\n1. **[Title]** — why it's good + `file:line` reference\n2. ...\n(minimum 2 strengths required)\n\n## Top 5 Actionable Improvements\n\n1. **[Title]** (impact: high\u002Fmedium\u002Flow, effort: high\u002Fmedium\u002Flow)\n   - Confidence: high\u002Fmedium\u002Flow\n   - What: one-sentence description of the problem\n   - Where: `file:line` references (every affected location)\n   - Why: what breaks, degrades, or confuses without the fix\n   - How: concrete fix — include before\u002Fafter code snippet\n\n   ```go\n   \u002F\u002F before\n   func GetUserId() string { ... }\n   \u002F\u002F after\n   func GetUserID() string { ... }\n   ```\n\n... (repeat for each — every item MUST have a before\u002Fafter snippet or exact command)\n\n## Detailed Findings\n\n### Naming Conventions (X\u002F10)\n\n**Issues** (each must have evidence):\n\n| # | Location | Issue | Suggested fix |\n|---|----------|-------|---------------|\n| 1 | `file.go:42` | `userId` should be `userID` | Rename to `userID` |\n| ... | ... | ... | ... |\n\n**What's working well**: brief note on what this dimension does right.\n\n... (repeat per dimension — every scored dimension MUST have the issues table)\n```\n\n## Guidelines\n\n- DO NOT make changes — this is a read-only audit\n- **Evidence is mandatory**: every finding must include a `file:line` reference. For systemic issues, provide at least one concrete example plus a count (\"12 occurrences across 4 packages\")\n- **Fixes must be concrete**: \"improve naming\" is not a fix; `rename userId to userID in store.go:42` is\n- **Before\u002Fafter required**: every Top 5 improvement must include a code snippet showing the current state and the proposed fix\n- Be fair: note strengths as well as weaknesses in every dimension\n- Prioritize by impact: focus on issues that affect maintainability\n- Prioritize repository conventions and Effective Go first; use stdlib\u002Fwell-known projects as secondary tie-breakers\n- Score honestly — use the calibration table; 7\u002F10 is good, 10\u002F10 means stdlib-quality\n- **No empty dimensions**: if a dimension is scored, it must have the issues table populated. If no issues are found, state \"no issues found\" explicitly and justify the score\n- **Report is incomplete if**: any scored dimension lacks evidence, any Top 5 item lacks a before\u002Fafter snippet, or the weighted average doesn't match the computed overall score\n\n## Parallel Execution Strategy\n\nFor codebases with 5+ packages, split work across subagents:\n1. **Main agent**: scan structure (step 2), run automated checks (step 3), produce final report\n2. **Subagent per package group**: steps 4-7 (naming, interface, error, consistency audits)\n   - Group small packages together (\u003C 3 files each)\n   - Each subagent returns dimension scores + findings for its packages\n3. **Main agent**: merge subagent findings, resolve cross-package issues (step 8), compute final scores\n\n## Examples\n\n- `\u002Fdesign-review` — Full design review of entire codebase\n- `\u002Fdesign-review internal\u002Ftui` — Review only the TUI package\n- `\u002Fdesign-review --focus naming` — Review only naming conventions\n","# Design Review\n\nPerform a comprehensive design review of the Go codebase. Evaluate code quality, naming conventions, consistency, and architectural patterns. Produce a scored report with actionable improvements.\n\n## When to use\n\nUse this skill when:\n- Auditing overall design quality before a major refactor or release\n- Onboarding to an unfamiliar Go codebase and need a structured assessment\n- Comparing codebase against Go idioms after a period of rapid development\n\nDo NOT use for:\n- Reviewing a single PR or uncommitted diff (use `code-review` instead)\n- Writing new code or fixing bugs\n- Running linters\u002Ftests for CI gating (use `code-review` instead)\n\n### Relationship to code-review\n\n| Aspect | design-review | code-review |\n|--------|--------------|-------------|\n| Scope | Entire codebase or package | Changed files only |\n| Action | Read-only audit, scored report | Fix issues, enforce gates |\n| Focus | Architecture, patterns, idioms | Correctness, coverage, linting |\n| Output | Scorecard + recommendations | Pass\u002Ffail gates + fixes applied |\n\n## Dimensions\n\nScore each dimension 1-10 and provide specific file:line references for issues found.\n\n### 1. Naming Conventions\n- Exported types\u002Ffunctions follow Go conventions (MixedCaps, no underscores)\n- Package names are short, lowercase, singular (not `utils`, `helpers`, `common`)\n- Interface names use `-er` suffix where appropriate (`Reader`, `Writer`)\n- Receiver names are short (1-2 chars), consistent within type\n- Variable names: short in small scopes, descriptive in large scopes\n- Acronyms are all-caps (`ID`, `URL`, `HTTP`, not `Id`, `Url`, `Http`)\n- Test function names follow `TestFuncName_Scenario` pattern\n- Constants use MixedCaps, not SCREAMING_SNAKE\n\n### 2. Package Design\n- Packages have clear, singular responsibility\n- No circular dependencies\n- Internal packages used appropriately for implementation details\n- Package-level doc comments present\n- No God packages (too many responsibilities)\n- Reasonable file sizes (flag files > 500 lines)\n\n### 3. Interface Design\n- Interfaces are small (1-3 methods preferred)\n- Interfaces defined where consumed, not where implemented\n- No unnecessary interface pollution (concrete types are fine)\n- Accept interfaces, return structs\n- `io.Reader`, `io.Writer`, `fmt.Stringer` used where applicable\n\n### 4. Error Handling\n- Errors wrapped with context using `fmt.Errorf(\"...: %w\", err)`\n- Custom error types where callers need to inspect errors\n- No swallowed errors (unchecked `err` returns)\n- Sentinel errors are `var ErrFoo = errors.New(...)` not string comparison\n- Error messages are lowercase, no punctuation, no \"failed to\" prefix\n\n### 5. Concurrency Patterns\n- Goroutines have clear ownership and lifecycle\n- Channels used for communication, mutexes for state\n- `context.Context` propagated correctly\n- No goroutine leaks (all goroutines have exit paths)\n- `sync.WaitGroup` or `errgroup` used for fan-out\n\n### 6. API Consistency\n- Similar operations use similar signatures across packages\n- Config structs vs option functions used consistently\n- Constructor functions follow `NewFoo` pattern\n- Consistent use of pointer vs value receivers within a type\n- Method ordering: constructor, public methods, private methods\n\n### 7. Code Organization\n- One primary type per file (type + methods)\n- Test files mirror source files (`foo.go` \u002F `foo_test.go`)\n- Constants and vars at top of file\n- `init()` functions avoided (or justified)\n- Build tags and platform files follow conventions\n\n### 8. Documentation\n- Exported functions have doc comments starting with function name\n- Package doc comments present\n- Complex algorithms have inline comments explaining *why*\n- No stale\u002Fmisleading comments\n- Examples in tests for complex APIs\n\n## Procedure\n\n1. **Set scope first**:\n   - Determine target scope from command args (`\u002Fdesign-review`, package path, or `--focus`)\n   - Apply default include\u002Fexclude rules from the Scope section\n   - Note any skipped areas explicitly in the report\n\n2. **Scan structure**: Use `Glob` (`**\u002F*.go`) to map the package layout.\n   Use `Shell` with `go list .\u002F...` to enumerate packages and `wc -l` for line counts.\n\n3. **Automated checks**: Run in parallel:\n   - `go vet .\u002F...` — catch common mistakes\n   - `golangci-lint run .\u002F...` (if available) — extended lint checks\n   - Check for `\u002F\u002Fnolint` directives and their justifications\n   - If a tool is unavailable, continue review and mark that check as \"skipped\"\n\n4. **Naming audit**: Use `Grep` to sample each package:\n   - Search for naming violations: pattern `Id[^s]` instead of `ID`, `Url[^s]` instead of `URL`\n   - Use `Read` to check receiver name consistency per type\n   - Verify exported function doc comments\n   - Check package names against conventions\n\n5. **Interface audit**: Use `Grep` for `type \\w+ interface` to find all interface definitions:\n   - Count methods per interface (flag > 5 methods)\n   - Check if interfaces are defined at consumer or producer\n   - Look for interface embedding depth\n\n6. **Error handling audit**: Sample error paths:\n   - `Grep` for unchecked errors: `_, _ =` or bare function calls\n   - Check error wrapping: `%w` vs `%v` vs `%s`\n   - Look for string-based error checking vs sentinel\u002Ftype errors\n\n7. **Consistency audit**: Compare patterns across packages:\n   - Constructor patterns: `Grep` for `func New` across all packages and compare signatures\n   - Config patterns (struct vs options)\n   - Logging patterns (structured vs printf)\n   - Test patterns (table-driven vs individual)\n\n8. **Cross-reference**: Use tooling for efficiency:\n   - Dead code: `Grep` for unexported function definitions, then `Grep` for call sites within the package\n   - Duplicates: compare function signatures across packages\n   - Inconsistent patterns doing the same thing differently\n\n9. **Validate report before output**: Self-check the report against these gates:\n   - Every scored dimension has at least one finding with a `file:line` reference, or an explicit \"no issues found\" note\n   - Every Top 5 item has a before\u002Fafter code snippet or an exact command to run\n   - Key Strengths section has at least 2 entries with file references\n   - Overall score matches the weighted average (recalculate to confirm)\n   - No dimension is scored without evidence — if you can't find evidence, mark `N\u002FA`\n   If any gate fails, fix the report before presenting it.\n\n## Scope\n\n- Default include: `*.go` files in requested scope\n- Default exclude: `vendor\u002F`, `testdata\u002F`, generated files (`\u002F\u002F Code generated`), and protobuf outputs (for example `*.pb.go`) unless explicitly requested\n- Optional focus flags:\n  - `--include-tests` to include test style and coverage patterns in scoring\n  - `--include-generated` to include generated code in analysis\n- If scope is narrowed (for example `internal\u002Ftui`), score only that scope and state this clearly\n\n## Project-Specific Checks (pi-go)\n\nIn addition to general Go review, check:\n- **ADK compliance**: uses `model.LLM`, `tool.Tool`, `session.Service` — no custom abstractions wrapping ADK\n- **Provider pattern**: all providers under `internal\u002Fprovider\u002F` implement the same interface consistently\n- **Tool registration**: tools created via `tool.NewFunctionTool`, registered in `tools.CoreTools()`\n- **Session format**: JSONL append-only, implements `session.Service`\n- **Error retry**: transient LLM errors use `internal\u002Fagent\u002Fretry.go` patterns\n- **TUI conventions**: Bubble Tea v2 imports from `charm.land\u002Fbubbletea\u002Fv2`, not the old `github.com\u002Fcharmbracelet\u002Fbubbletea` path\n- **No external runtime deps**: binary must be self-contained\n- **No `init()` functions**: prefer explicit initialization\n\n## Scoring Model\n\nUse these weights for overall score:\n\n- Naming Conventions: 15%\n- Package Design: 15%\n- Interface Design: 15%\n- Error Handling: 20%\n- Concurrency Patterns: 10%\n- API Consistency: 10%\n- Code Organization: 10%\n- Documentation: 5%\n\nCalibration:\n\n| Score | Meaning |\n|-------|---------|\n| 9-10  | Stdlib\u002Fkubernetes quality — exemplary, publishable as reference |\n| 7-8   | Production quality — minor issues, follows idioms well |\n| 5-6   | Functional — noticeable gaps, inconsistencies, or missing patterns |\n| 3-4   | Below standard — systematic issues, needs refactoring |\n| 1-2   | Problematic — fundamental design issues |\n\nRules:\n\n- Score each dimension `1-10` using the calibration table above\n- Allow `N\u002FA` when a dimension does not apply to the reviewed scope\n- Compute overall as weighted average of applicable dimensions only\n- Round overall score to 1 decimal place\n\n## Output Format\n\nPresent results as a scorecard table, then detailed findings per dimension.\n\n```\n## Scorecard\n\n| Dimension           | Score | Notes                           |\n|---------------------|-------|---------------------------------|\n| Naming Conventions  | X\u002F10  | brief note                      |\n| Package Design      | X\u002F10  | brief note                      |\n| Interface Design    | X\u002F10  | brief note                      |\n| Error Handling      | X\u002F10  | brief note                      |\n| Concurrency         | X\u002F10  | brief note                      |\n| API Consistency     | X\u002F10  | brief note                      |\n| Code Organization   | X\u002F10  | brief note                      |\n| Documentation       | X\u002F10  | brief note                      |\n|---------------------|-------|---------------------------------|\n| **Overall**         | X\u002F10  | weighted average (1 decimal)   |\n\n## Key Strengths\n1. **[Title]** — why it's good + `file:line` reference\n2. ...\n(minimum 2 strengths required)\n\n## Top 5 Actionable Improvements\n\n1. **[Title]** (impact: high\u002Fmedium\u002Flow, effort: high\u002Fmedium\u002Flow)\n   - Confidence: high\u002Fmedium\u002Flow\n   - What: one-sentence description of the problem\n   - Where: `file:line` references (every affected location)\n   - Why: what breaks, degrades, or confuses without the fix\n   - How: concrete fix — include before\u002Fafter code snippet\n\n   ```go\n   \u002F\u002F before\n   func GetUserId() string { ... }\n   \u002F\u002F after\n   func GetUserID() string { ... }\n   ```\n\n... (repeat for each — every item MUST have a before\u002Fafter snippet or exact command)\n\n## Detailed Findings\n\n### Naming Conventions (X\u002F10)\n\n**Issues** (each must have evidence):\n\n| # | Location | Issue | Suggested fix |\n|---|----------|-------|---------------|\n| 1 | `file.go:42` | `userId` should be `userID` | Rename to `userID` |\n| ... | ... | ... | ... |\n\n**What's working well**: brief note on what this dimension does right.\n\n... (repeat per dimension — every scored dimension MUST have the issues table)\n```\n\n## Guidelines\n\n- DO NOT make changes — this is a read-only audit\n- **Evidence is mandatory**: every finding must include a `file:line` reference. For systemic issues, provide at least one concrete example plus a count (\"12 occurrences across 4 packages\")\n- **Fixes must be concrete**: \"improve naming\" is not a fix; `rename userId to userID in store.go:42` is\n- **Before\u002Fafter required**: every Top 5 improvement must include a code snippet showing the current state and the proposed fix\n- Be fair: note strengths as well as weaknesses in every dimension\n- Prioritize by impact: focus on issues that affect maintainability\n- Prioritize repository conventions and Effective Go first; use stdlib\u002Fwell-known projects as secondary tie-breakers\n- Score honestly — use the calibration table; 7\u002F10 is good, 10\u002F10 means stdlib-quality\n- **No empty dimensions**: if a dimension is scored, it must have the issues table populated. If no issues are found, state \"no issues found\" explicitly and justify the score\n- **Report is incomplete if**: any scored dimension lacks evidence, any Top 5 item lacks a before\u002Fafter snippet, or the weighted average doesn't match the computed overall score\n\n## Parallel Execution Strategy\n\nFor codebases with 5+ packages, split work across subagents:\n1. **Main agent**: scan structure (step 2), run automated checks (step 3), produce final report\n2. **Subagent per package group**: steps 4-7 (naming, interface, error, consistency audits)\n   - Group small packages together (\u003C 3 files each)\n   - Each subagent returns dimension scores + findings for its packages\n3. **Main agent**: merge subagent findings, resolve cross-package issues (step 8), compute final scores\n\n## Examples\n\n- `\u002Fdesign-review` — Full design review of entire codebase\n- `\u002Fdesign-review internal\u002Ftui` — Review only the TUI package\n- `\u002Fdesign-review --focus naming` — Review only naming conventions\n",{"name":5,"metadata":37,"description":39},{"author":9,"version":38},"1.1","Deep design review of Go codebase — naming, structure, consistency, interfaces, error handling. Scores each dimension and provides actionable fixes.\n","main","bcfcd42255878c3d40e545abcdeb2520b6d31a52",".pi-go\u002Fskills\u002Fdesign-review",34,"https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go","https:\u002F\u002Fpi-go.sh","https:\u002F\u002Fgithub.com\u002Fdimetron","🎸💻 🚧🦞","2026-11-15 03:48:24",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add dimetron\u002Fpi-go --skill design-review",{"tool":55,"command":56},"bunx","bunx skills add dimetron\u002Fpi-go --skill design-review",{"tool":58,"command":59},"pnpm","pnpm dlx skills add dimetron\u002Fpi-go --skill design-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002F.pi-go\u002Fskills\u002Fdesign-review\u002FSKILL.md",true,[],[64,90,113,131,146,166],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":32},"01M70SJ3216A0Y2NXYJJ2MVER0","verify-session-flow","Formally verify the interactive session flow before or after changing it. Use when editing internal\u002Ftui\u002Ftui.go's handleKey, handleInterruptKey, handleInputSubmit, ctrlCCount or quitting, internal\u002Ftui\u002Fagent_loop.go's enqueuePrompt, submit, steerPrompt, cancelAgent or handleAgentDone, or the deferred-init splash — or when a user reports that Ctrl+C quit on the first press, that Esc did not stop a turn or a goal loop, that a queued prompt was lost when they canceled, or that the TUI hung on a spinner nothing could clear.","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-session-flow\u002FSKILL.md",[],[71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,22,88,89],"session","verify session flow","verify","flow","submit","editing","init","use","loop","prompt","when","interactive","reports","first","goal","CTRL","clear","spinner","tui",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":32},"01M70SJ02CTB40V2VFGAF80SBG","verify-run-pipeline","Formally verify the \u002Frun phase machine before or after changing it. Use when editing internal\u002Ftui\u002Frun.go's phase transitions (handleRunAgentDone, runGates result handling, verifyRunComplete, retryRun, reportGateHang, merge), internal\u002Fsop\u002Fverdict.go's Passed, or the checklist refresh — or when a run merged work it should not have, retried a hung gate, lost a cycle at the retry budget, or merged on a stale PASS.","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-run-pipeline\u002FSKILL.md",[],[97,98,73,99,100,101,76,102,103,104,78,81,105,106,107,108,109,110,111,112],"pipeline","verify run pipeline","run","run pipeline","retry","cycle","run phase","machine","phase","refresh","work","verdict","transitions","result","merge","sop",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":32},"01M70SHWJV9N3PQWRAMCQE9C2E","verify-history-rewrite","Formally verify the session-history rewrite path before or after changing it. Use when editing internal\u002Fsession\u002Fautocompact.go, internal\u002Fsession\u002Fcompaction*.go, internal\u002Fsession\u002Fstore.go's Compact\u002FClearEvents\u002FrewriteEvents, internal\u002Fagent\u002Fagent.go's Run\u002FRunStreaming\u002FrunPreTurn, or internal\u002Ftui\u002Fcommands.go's clearConversation\u002FclearSessionContext and the context gauge — or when a turn is canceled mid-flight, a tool call and its result get separated, a session's history disappears while the agent is still working, or the model is sent a tool result whose call was compacted away.","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-history-rewrite\u002FSKILL.md",[],[120,121,122,73,123,124,76,71,125,126,78,127,81,128,129,110,99,130,22,89],"history","rewrite","verify history rewrite","get","model","tool","call","compact","store","gauge","commands",{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":32},"01M70SHSJ5A2XV5SXBXM96RH7P","verify-goal-loop","Formally verify the \u002Fgoal automatic loop before or after changing it. Use when editing internal\u002Ftui\u002Fgoal.go, internal\u002Ftui\u002Fagent_loop.go's handleAgentDone\u002FcancelAgent\u002FsteerPrompt, or internal\u002Ftools\u002Fgoal.go's GoalController — or when a goal loop will not stop, stops one cycle early, closes a goal that is not met, or restarts a goal you finished.","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-goal-loop\u002FSKILL.md",[],[79,138,139,73,85,140,76,102,78,81,141,142,22,89,143,144,145],"verify goal loop","verify goal","goal loop","you","automatic","Tools","it","stop",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":32},"01M70SHPYN1AS6D6RJ8HN270RZ","verify-agent-lifecycle","Formally verify the subagent lifecycle before or after changing it. Use when editing internal\u002Fsubagent\u002Forchestrator.go's Spawn, trackAgent, forwardAgentEvents, terminalStatus, Cancel, ShutdownWithTimeout or evictCompletedAgentsLocked, or internal\u002Fsubagent\u002Fpool.go — or when a canceled agent is reported as failed, an agent vanishes from the list with no verdict, the orchestrator panics on a pool release, or an agent can be canceled twice.","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Fextension\u002Fbundled_skills\u002Fverify-agent-lifecycle\u002FSKILL.md",[],[153,154,155,73,156,76,78,81,157,158,159,160,108,161,162,163,164,22,144,165],"lifecycle","verify agent lifecycle","agent lifecycle","as","cancel","subagent","can","with","orchestrator","spawn","release","list","pool",{"skillNo":167,"name":168,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":32},"01M6E37WZM8ZF36DRYQGZDGP7M","test-new-skill","https:\u002F\u002Fgithub.com\u002Fdimetron\u002Fpi-go\u002Fblob\u002Fmain\u002Finternal\u002Ftui\u002F.pi-go\u002Fskills\u002Ftest-new-skill\u002FSKILL.md",[],[172,173,174,175],"test","new skill","test new skill","new"]