structpolicy-tune
CommunityEnforce Go struct pointer/value consistency.
Authorshuymn
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Go code often suffers from mismatched struct usage semantics, leading to unnecessary allocations or copies. This Skill analyzes and tunes struct usage by enforcing pointer/value semantics with ptrstruct and valuestruct, ensuring consistent performance characteristics across APIs.
Core Features & Use Cases
- Run ptrstruct and valuestruct analyses together to surface where value receivers, pointer parameters, or pointer returns violate consistent semantics.
- Apply targeted fixes to receivers, parameters, and returns to reduce allocations and improve clarity.
- Provide guidance on benchmarking and safe migration, including test updates and compatibility checks.
Quick Start
Run the structpolicy-tune workflow on your Go project to align pointer/value usage and reduce allocations.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: structpolicy-tune Download link: https://github.com/shuymn/structpolicy/archive/main.zip#structpolicy-tune Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.