batch-structural-change-on-query

batch-structural-change-on-query is a skill for Claude Code from dyCuong03/unity-agent-team. It costs 39 tokens per session (756 once invoked), scanned A, original, MIT.

A Unity Entity Component System (ECS) technique for applying the same structural change to every entity matched by a query in one operation. Structural changes alter an entity's components or remove the entity.

In plain words
What is it for?
Use it to destroy matching entities, add or remove a component from all matches, or enable or disable a component for the whole query.
Why use it?
It avoids manually visiting entities one by one and avoids changing the entity collection while iterating over it.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to destroy matching entities, add or remove a component from all matches, or enable or disable a component for the whole query.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dycuong03/unity-agent-team/batch-structural-change-on-query
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 dyCuong03/unity-agent-team --skill batch-structural-change-on-query
Clone the repo
git clone --depth 1 https://github.com/dyCuong03/unity-agent-team

Made for: Claude Code.

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 batch-structural-change-on-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/dycuong03/unity-agent-team/batch-structural-change-on-query/github.svg)](https://agentmods.dev/skills/dycuong03/unity-agent-team/batch-structural-change-on-query)
Your own site
<a href="https://agentmods.dev/skills/dycuong03/unity-agent-team/batch-structural-change-on-query"><img src="https://agentmods.dev/badge/skills/dycuong03/unity-agent-team/batch-structural-change-on-query/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for batch-structural-change-on-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/dycuong03/unity-agent-team/batch-structural-change-on-query"><img src="https://agentmods.dev/badge/skills/dycuong03/unity-agent-team/batch-structural-change-on-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 756 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.00039 $0.00756
Opus 5.5 $0.00016 $0.00302
Sonnet 5.5 $0.00008 $0.00151
Haiku 4.5 $0.00004 $0.00076

Measured 1mo ago against content hash ccc66bc3ad80, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

batch-structural-change-on-query 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 1mo 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.

.claude/skills/unity-dots/batch-structural-change-on-query/SKILL.md · 75 lines

How it starts

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

Batch Structural Change on Query

Intent

Perform a structural change on all entities matching a query in a single pass by passing the EntityQuery directly to EntityManager, rather than iterating entities individually.

Use When

Destroying, adding, or removing components from all entities that match a condition — and the condition is uniform (same operation for all matching entities). The query IS the condition.

Avoid When

The operation is conditional per-entity (some entities in the query should be changed, others should not) — use ECB with per-entity conditional recording instead. Avoid inside a SystemAPI.Query foreach on the same query type — iterator invalidation.

Senior Pattern

  • state.EntityManager.DestroyEntity(query) — destroys all matching entities in one pass.
  • state.EntityManager.AddComponent<T>(query) — adds T to all matching entities in one pass.
  • state.EntityManager.RemoveComponent<T>(query) — removes T from all matching in one pass.
  • state.EntityManager.SetComponentEnabled<T>(query, bool) — toggles enabled state for all matching.
  • Build the query with EntityQueryBuilder and reuse it — don't rebuild the query every OnUpdate.

Code Template

[BurstCompile]
public partial struct WaveCleanupSystem : ISystem
{
    private EntityQuery m_DeadEnemyQuery;
    private EntityQuery m_WaveCompleteQuery;

    public void OnCreate(ref SystemState state)
    {
        m_DeadEnemyQuery = SystemAPI.QueryBuilder()
            .WithAll<EnemyData, Dead>().Build();
        m_WaveCompleteQuery = SystemAPI.QueryBuilder()
            .WithAll<WaveComplete>().Build();
        state.RequireForUpdate(m_WaveCompleteQuery);
    }

    public void OnUpdate(ref SystemState state)
    {
        // Destroy all dead enemies in one pass
        state.EntityManager.DestroyEntity(m_DeadEnemyQuery);

        // Remove WaveComplete from all entities (flag consumed)
        state.EntityManager.RemoveComponent<WaveComplete>(m_WaveCompleteQuery);
    }
}

Read the full file on GitHub · 75 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. 1mo ago First seen · 75 lines · 39 tokens per session scan A ccc66bc3ad80

Subscribe to this mod's changes

batch-structural-change-on-query is a skill published in the GitHub repository dyCuong03/unity-agent-team (8 stars, last pushed 4mo ago), licensed MIT. It adds 39 tokens to every session and 756 once invoked, about $0.0002 per session on Opus 5.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-10-02.

Related

batch-structural-change-on-query compared with skills from other repositories

batch-structural-change-on-query next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
batch-structural-change-on-querydyCuong03/unity-agent-teamSkill84mo agoMITA39Claude Code
profilingkevinpbuckley/VibeUESkill847yesterdayMITA81Claude Code, Codex
game-performance-budgetmakifbaysal/tasktrooperSkill123todayApache-2.0A53Claude Code, Codex
unity-performance-and-gcmakifbaysal/tasktrooperSkill123todayApache-2.0A76Claude Code, Codex
web-game-performance-and-testingmakifbaysal/tasktrooperSkill123todayApache-2.0A87Claude Code, Codex
tune-performanceSummerEngine/summer-engine-agentSkill592mo agoMITA94Claude Code
technical-artistbuiphucminhtam/forgewrightSkill493d agononeA54Claude Code