aspid-id-struct

aspid-id-struct is a skill for Claude Code from VPDPersonal/Aspid.Claude.Plugins. It costs 129 tokens per session (1,316 once invoked), scanned A, original, MIT.

A skill for creating stable identifier types backed by Aspid.FastTools’ IdRegistry in Unity projects. An identifier type gives a named value, such as EnemyId or ItemId, instead of passing an unlabelled number through the code.

In plain words
What is it for?
Use it when adding a project-wide unique ID, creating an ID struct, or registering an identifier with IdRegistry.
Why use it?
It removes the repetitive setup needed for identifiers that must work as both integers and readable strings. The generated code supplies the backing and registry-related parts.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the aspid-fasttools plugin — 3 skills shipped together

Good fit Use it when adding a project-wide unique ID, creating an ID struct…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vpdpersonal/aspid.claude.plugins/aspid-id-struct
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add VPDPersonal/Aspid.Claude.Plugins --skill aspid-id-struct
Clone the repo
git clone --depth 1 https://github.com/VPDPersonal/Aspid.Claude.Plugins

Made for: Claude Code.

Or install aspid-fasttools, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aspid-id-struct

README.md
[![agentmods](https://agentmods.dev/badge/skills/vpdpersonal/aspid.claude.plugins/aspid-id-struct.svg)](https://agentmods.dev/skills/vpdpersonal/aspid.claude.plugins/aspid-id-struct)
Your own site
<a href="https://agentmods.dev/skills/vpdpersonal/aspid.claude.plugins/aspid-id-struct"><img src="https://agentmods.dev/badge/skills/vpdpersonal/aspid.claude.plugins/aspid-id-struct.svg" alt="Measured on agentmods" height="20"></a>
Per session 129 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,316 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00129 $0.01316
Opus 5 $0.00064 $0.00658
Sonnet 5 $0.00026 $0.00263
Haiku 4.5 $0.00013 $0.00132

Measured 6d ago against content hash 9c41a837460f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

aspid-id-struct scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/aspid-fasttools/skills/aspid-id-struct/SKILL.md · 158 lines

How it starts

The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.

aspid-id-struct

Generate the boilerplate consumers need to add a new project-wide id type backed by Aspid.FastTools.Ids.

When this skill applies

Trigger when the user asks for any of:

  • "create an id struct for X" / "add a unique id for X"
  • "make X a project-wide id" / "stable int id for X"
  • "register X in IdRegistry"
  • references to [UniqueId], IId, IdRegistry, or IdStructGenerator

Do not trigger for plain integer enums, Guid, or non-Aspid id systems.

What the user gets

The package's IdStructGenerator does the heavy lifting. The user only writes a partial struct that implements IId. The generator emits:

  • private int _id; (serialized field)
  • public int Id => _id;
  • editor-only __stringId (drives the registry-aware drawer)

Generated file naming: {StructName}.IId.g.cs.

Steps

1. Pick a name and namespace

If the user did not give a name, suggest one based on the domain (ItemId, EnemyId, AbilityId, SfxId). Confirm before writing.

The struct must live in a runtime assembly (player-build), i.e. not under Editor/ and not in an Aspid.FastTools.Unity.Editor-style asmdef.

2. Write the struct

using Aspid.FastTools.Ids;

namespace Game.Items
{
    public partial struct ItemId : IId { }
}

Required properties:

  • partial — without it the generator emits nothing.
  • Implements IId — the generator checks AllInterfaces for Aspid.FastTools.Ids.IId.
  • Public visibility is recommended; internal works if the consumer is the same assembly.

Do not add _id field, Id property, or any other body member — they are generated.

3. Create the registry asset

Tell the user to create the asset in the editor:

Assets → Create → Aspid → Id Registry

Each IId struct binds to exactly one IdRegistry asset. The package's IdRegistryResolver enforces uniqueness at lookup time. If the user already has a registry for this struct, they should reuse it; the editor drawer will warn on duplicates.

Read the full file on GitHub · 158 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 158 lines · 0 tokens per session scan A 9c41a837460f

Subscribe to this mod's changes

aspid-id-struct is a skill published in the GitHub repository VPDPersonal/Aspid.Claude.Plugins (3 stars, last pushed 3mo ago), licensed MIT. It adds 129 tokens to every session and 1,316 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.