Golang Patterns
affaan-m/ECC
Go-specific design patterns and best practices including functional options, small interfaces, dependency injection, concurrency patterns, error handling, and package organization.
Trigger Pattern Always (Sui Move) -- foundational security check - Inject Into Breadth agents, depth agents
$ npx skills add PlamenTSV/plamen --skill ability-analysis -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install PlamenTSV/plamen ability-analysis --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/PlamenTSV/plamen.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agents/skills/sui/ability-analysis .claude/skills/ability-analysis && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "ability-analysis" agent skill from https://github.com/PlamenTSV/plamen/tree/main/agents/skills/sui/ability-analysis into .claude/skills/ability-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ability-analysis", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/PlamenTSV/plamen/tree/main/agents/skills/sui/ability-analysisType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add PlamenTSV/plamen --skill ability-analysis -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install PlamenTSV/plamen ability-analysis --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PlamenTSV/plamen.git skills-src && mkdir -p .agents/skills && cp -r skills-src/agents/skills/sui/ability-analysis .agents/skills/ability-analysis && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "ability-analysis" agent skill from https://github.com/PlamenTSV/plamen/tree/main/agents/skills/sui/ability-analysis into .agents/skills/ability-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ability-analysis", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PlamenTSV/plamen --skill ability-analysis -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install PlamenTSV/plamen ability-analysis --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PlamenTSV/plamen.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/agents/skills/sui/ability-analysis .cursor/skills/ability-analysis && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "ability-analysis" agent skill from https://github.com/PlamenTSV/plamen/tree/main/agents/skills/sui/ability-analysis into .cursor/skills/ability-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ability-analysis", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/PlamenTSV/plamen.git --path agents/skills/sui/ability-analysis--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add PlamenTSV/plamen --skill ability-analysis -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install PlamenTSV/plamen ability-analysis --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PlamenTSV/plamen.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/agents/skills/sui/ability-analysis .gemini/skills/ability-analysis && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "ability-analysis" agent skill from https://github.com/PlamenTSV/plamen/tree/main/agents/skills/sui/ability-analysis into .gemini/skills/ability-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ability-analysis", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install PlamenTSV/plamen ability-analysisInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add PlamenTSV/plamen --skill ability-analysis -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/PlamenTSV/plamen.git skills-src && mkdir -p .github/skills && cp -r skills-src/agents/skills/sui/ability-analysis .github/skills/ability-analysis && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "ability-analysis" agent skill from https://github.com/PlamenTSV/plamen/tree/main/agents/skills/sui/ability-analysis into .github/skills/ability-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ability-analysis", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PlamenTSV/plamen --skill ability-analysis -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install PlamenTSV/plamen ability-analysis --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PlamenTSV/plamen.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/agents/skills/sui/ability-analysis .opencode/skills/ability-analysis && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "ability-analysis" agent skill from https://github.com/PlamenTSV/plamen/tree/main/agents/skills/sui/ability-analysis into .opencode/skills/ability-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ability-analysis", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
ability-analysisTrigger Pattern Always (Sui Move) -- foundational security check - Inject Into Breadth agents, depth agents
Ability Analysis is an agent skill from PlamenTSV/plamen. Trigger Pattern Always (Sui Move) -- foundational security check - Inject Into Breadth agents, depth agents
Its SKILL.md is about 3.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: Autonomous Web3 security audit agent for Claude Code. The licence is MIT.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 795962b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Ability Analysis loads about 3.2k tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 1,527 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from PlamenTSV/plamen at commit 795962b, republished under its MIT licence (© PlamenTSV). 1,527 words, ~3,249 tokens.
.claude/skills/ability-analysis/SKILL.md (or your agent's skills folder).Trigger Pattern: Always (Sui Move) -- foundational security check Inject Into: Breadth agents, depth agents
For every struct defined in the protocol:
STEP PRIORITY: Steps 5 (Hot Potato Enforcement) and 7 (Dynamic Field Ability Propagation) are where HIGH/CRITICAL severity findings most commonly hide. Do NOT rush these steps. If constrained, skip conditional sections before skipping 5 or 7.
Enumerate ALL structs across all modules:
| Module | Struct | Abilities | Has id: UID? | Is Object? | Transferable? | Notes |
|---|---|---|---|---|---|---|
| {mod} | {name} | {key, store, drop, copy} | YES/NO | YES/NO | YES/NO | {context} |
Sui ability semantics:
key = Object type. MUST have id: UID as the first field. Can be owned, shared, or frozen.store = Can be transferred freely via public_transfer / public_share_object. Can be stored inside other objects via dynamic fields or wrapping.drop = Can be implicitly discarded. Without drop, the value MUST be explicitly consumed (unpacked, transferred, or destroyed).copy = Can be duplicated. copy + key is IMPOSSIBLE in Sui -- objects cannot be copied.Consistency check: For each struct with key:
id: UID as the FIRST field? If not -> compilation error (catch misplaced UID).store intentionally included or omitted? key without store = only the defining module can transfer it (custom transfer rules).Classify each object (key ability) by ownership model:
| Object | Ownership | Created Via | Transfer Restricted? | Freeze Possible? |
|---|---|---|---|---|
| {name} | Owned / Shared / Frozen / Wrapped | {function} | YES (no store) / NO (store) | YES/NO |
Security checks per ownership type:
transfer::transfer to reset state?transfer::share_object at creation?transfer::freeze_object?key only, no store, wrapped inside a key + store parent)?For each struct, verify ability assignments match intended behavior:
drop -- Intentional?| Struct | Has drop? | Explicit Destroy Function? | Can Leak? |
|---|---|---|---|
| {name} | NO | YES: destroy_{name}() / NO | YES/NO |
Rule: A struct without drop that has no explicit destroy/consume path creates a resource leak. The transaction will abort if the value is not consumed. This is sometimes intentional (hot potato) but often a bug when the struct is created in error paths.
store -- Over-Permissive?| Struct | Has store? | Stored in Dynamic Fields? | Freely Transferable? | Should Be Restricted? |
|---|---|---|---|---|
| {name} | YES | YES/NO | YES | {analysis} |
Check: If a struct has store but the protocol intends restricted transfers (e.g., non-transferable receipts, bound tickets), the store ability enables bypass via public_transfer. Does any security invariant depend on transfer restriction?
copy Abuse Potential| Struct | Has copy? | Contains Balances/IDs? | Duplication Dangerous? |
|---|---|---|---|
| {name} | YES/NO | YES/NO | YES/NO |
Rule: copy on a struct containing Balance<T>, capability tokens, or unique identifiers is almost always a bug -- it enables double-spending or capability duplication. copy + key is impossible (enforced by Sui), but copy + store on inner structs is allowed and dangerous if they hold value.
Identify all capability/admin structs:
| Capability | Abilities | Created In | Transferred To | Can Be Duplicated? | Revocable? |
|---|---|---|---|---|---|
| {name} | {abilities} | init() | {recipient} | YES (copy) / NO | YES/NO |
Checks:
init() (module initializer)? If created elsewhere, can it be minted by unauthorized parties?store? If yes, the holder can transfer it freely -- is this intended?init, not stored.Identify all structs with NO abilities:
| Struct | Module | Created By | Must Be Consumed By | Enforced? |
|---|---|---|---|---|
| {name} | {mod} | {function} | {function} | YES/NO |
Hot potato security checks:
object::id() of the object being repaid, settled, claimed, or mutated?store via a wrapper? (Check: is there a public wrapper that accepts arbitrary store types.)Pattern validation: Trace every hot potato from creation to consumption. Document the full lifecycle:
create: module::start_action() -> HotPotato
... intervening calls that rely on HotPotato's existence ...
consume: module::finish_action(potato: HotPotato)If any code path creates a hot potato without a guaranteed consumption path -> FINDING (transaction will always abort on that path). If a receipt enforces consumption but is not bound to the source object it came from -> FINDING (the receipt can settle the wrong order/pool/position).
For objects with key but NOT store:
| Object | Module Transfer Function | Custom Rules | Bypass Possible? |
|---|---|---|---|
| {name} | {function or NONE} | {description} | YES/NO |
Sui transfer rules:
key + store: Anyone can transfer via transfer::public_transfer.key only: Only the defining module can transfer via transfer::transfer (requires module-level access).store-capable struct, then the wrapper transferred freely? If the wrapping struct is from a DIFFERENT module, this is a transfer restriction bypass.Check each restricted object:
For every use of dynamic_field::add or dynamic_object_field::add:
| Parent Object | Field Key Type | Field Value Type | Value Has store? | Parent Has store? |
|---|---|---|---|---|
| {parent} | {key_type} | {value_type} | YES/NO | YES/NO |
Rules:
dynamic_field::add requires the value type to have store.dynamic_object_field::add requires the value type to have key + store.store is added as a dynamic field, anyone who can access the parent object can potentially extract it via dynamic_field::remove. Is extraction access-controlled?vector<u8> or String.)For each module with an init function:
| Module | init Parameters | Objects Created | Capabilities Issued | OTW Consumed? |
|---|---|---|---|---|
| {mod} | {params} | {list} | {list} | YES/NO/N/A |
Checks:
init the ONLY place critical capabilities are created?init properly consume the One-Time Witness if one is passed?init.)init? (They must be -- you cannot share an owned object after creation in Sui.)**ID**: [AB-N]
**Severity**: [based on ability misuse impact]
**Step Execution**: check1,2,3,4,5,6,7,8 | X(reasons) | ?(uncertain)
**Rules Applied**: [R4:Y, R5:Y, R10:Y, ...]
**Location**: module::struct_name
**Title**: [Ability issue type] in [struct] enables [attack/bypass]
**Description**: [Specific ability misconfiguration with type-level trace]
**Impact**: [What breaks: transfer restriction bypass, capability duplication, resource leak, hot potato griefing]CRITICAL: You MUST report completion status for ALL sections. Findings with incomplete sections will be flagged for depth review.
| Section | Required | Completed? | Notes |
|---|---|---|---|
| 1. Struct Ability Inventory | YES | Y/X/? | |
| 2. Object Model Classification | YES | Y/X/? | |
| 2b. Shared Object Analysis | IF shared objects | Y/X(N/A)/? | |
| 3. Ability Mismatch Analysis | YES | Y/X/? | |
3b. Unnecessary store Check | YES | Y/X/? | |
3c. copy Abuse Check | YES | Y/X/? | |
| 4. Capability Pattern Audit | YES | Y/X/? | |
| 5. Hot Potato Enforcement | IF hot potatoes exist | Y/X(N/A)/? | HIGH PRIORITY |
| 6. Transfer Restriction Analysis | IF key-only objects | Y/X(N/A)/? | |
| 7. Dynamic Field Ability Propagation | IF dynamic fields used | Y/X(N/A)/? | HIGH PRIORITY |
| 8. Module Initializer Audit | YES | Y/X/? |
After Section 4 (Capability Pattern Audit):
TYPE_SAFETY.md Section on OTW analysisstore -> flag for SEMI_TRUSTED_ROLES analysisAfter Section 5 (Hot Potato Enforcement):
After Section 7 (Dynamic Field Ability Propagation):
© PlamenTSV, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in agents/skills/sui/ability-analysis of PlamenTSV/plamen.
Open the folder on GitHubat commit 795962b
Ability Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Ability Analysis this skillPlamenTSV/plamen | 303 | — | ~3.2k | Automated safety check: Pass | MIT | |
| Golang Patternsaffaan-m/ECC | 275k | — | ~1.1k | Automated safety check: Pass | MIT | |
| Kotlin Exposed Patternsaffaan-m/ECC | 275k | 4 repos | ~5.5k | Automated safety check: Pass | MIT | |
| Dotnet Patternsaffaan-m/ECC | 275k | 1 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Fastapi Patternsaffaan-m/ECC | 275k | — | ~2.3k | Automated safety check: Pass | MIT | |
| Python Patternsaffaan-m/ECC | 275k | — | ~2.3k | Automated safety check: Pass | MIT |
affaan-m/ECC
Go-specific design patterns and best practices including functional options, small interfaces, dependency injection, concurrency patterns, error handling, and package organization.
affaan-m/ECC
JetBrains Exposed ORM patterns including DSL queries, DAO pattern, transactions, HikariCP connection pooling, Flyway migrations, and repository pattern.
affaan-m/ECC
Idiomatic C and .NET patterns, conventions, dependency injection, async/await, and best practices for building robust, maintainable .NET applications.
affaan-m/ECC
FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.
affaan-m/ECC
Python-specific design patterns and best practices including protocols, dataclasses, context managers, decorators, async/await, type hints, and package organization.
affaan-m/ECC
Production-ready animation patterns for React / Next.js — button, modal, toast, stagger, page transitions, exit animations, scroll, and layout — built on motion-foundations tokens and springs.
PlamenTSV/plamen
Prepare Solidity projects for a security audit — test coverage, test quality, NatSpec docs, code hygiene, dependency health, best-practice enforcement, deployment readiness, and project…
PlamenTSV/plamen
Trigger Pattern Always (used by all verifier agents) - Inject Into security-verifier agents (Phase 5)
PlamenTSV/plamen
Trigger Pattern Always (Aptos Move) - foundational security check - Inject Into Breadth agents, depth agents
PlamenTSV/plamen
Trigger Pattern ACCOUNTCLOSING flag detected (close/CloseAccount usage) - Inject Into Breadth agents, depth agents
PlamenTSV/plamen
Trigger Pattern Always required for Solana audits - Inject Into Breadth agents, depth agents
PlamenTSV/plamen
Trigger Pattern Always required for Soroban audits - Inject Into Breadth agents, depth agents
Trigger Pattern Always (Sui Move) -- foundational security check - Inject Into Breadth agents, depth agents. Ability Analysis is an agent skill from PlamenTSV/plamen.
Ability Analysis fits situations like: pattern Always (Sui Move) -- foundational security check - Inject Into Breadth agents.
Run `npx skills add PlamenTSV/plamen --skill ability-analysis -a claude-code`. Or copy the skill folder (agents/skills/sui/ability-analysis in PlamenTSV/plamen) into .claude/skills/ability-analysis in your project. Claude Code loads it when a task matches its description.
Run `npx skills add PlamenTSV/plamen --skill ability-analysis -a codex`. Or copy the skill folder (agents/skills/sui/ability-analysis in PlamenTSV/plamen) into .agents/skills/ability-analysis in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PlamenTSV/plamen --skill ability-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ability-analysis, .gemini/skills/ability-analysis, .github/skills/ability-analysis and .opencode/skills/ability-analysis in your project.
SKILL.md names no scripts, command-line tools or credentials: Ability Analysis is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Ability Analysis is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.2k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Ability Analysis: Golang Patterns (affaan-m/ECC, 275k stars), Kotlin Exposed Patterns (affaan-m/ECC, 275k stars), Dotnet Patterns (affaan-m/ECC, 275k stars) and Fastapi Patterns (affaan-m/ECC, 275k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
PlamenTSV (a GitHub user) maintains it in PlamenTSV/plamen, which has 303 GitHub stars. The repository holds 87 skills in this directory. The repository was last updated on September 26, 2026.
Source: PlamenTSV/plamen on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.