sp-context

sp-context is a skill for Claude Code, Codex from IvanYangYangXi/artclaw_bridge. It costs 66 tokens per session (1,366 once invoked), scanned A, original, MIT.

A Substance Painter tool for reading the current project’s state, including its texture sets, layer stack, and channels.

In plain words
What is it for?
Use it to check the project file and save status, list texture sets and resolutions, inspect layers, and review available channels.
Why use it?
It gives an AI a structured view of what is open and how the project is organised instead of relying on guesswork.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to check the project file and save status, list texture sets and resolutions, inspect layers, and review available channels.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ivanyangyangxi/artclaw_bridge/sp-context
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 IvanYangYangXi/artclaw_bridge --skill sp-context
Clone the repo
git clone --depth 1 https://github.com/IvanYangYangXi/artclaw_bridge

Made for: Claude Code, Codex.

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 sp-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/ivanyangyangxi/artclaw_bridge/sp-context/github.svg)](https://agentmods.dev/skills/ivanyangyangxi/artclaw_bridge/sp-context)
Your own site
<a href="https://agentmods.dev/skills/ivanyangyangxi/artclaw_bridge/sp-context"><img src="https://agentmods.dev/badge/skills/ivanyangyangxi/artclaw_bridge/sp-context/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 sp-context

Your own site · 80×15
<a href="https://agentmods.dev/skills/ivanyangyangxi/artclaw_bridge/sp-context"><img src="https://agentmods.dev/badge/skills/ivanyangyangxi/artclaw_bridge/sp-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,366 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.00066 $0.01366
Opus 5.5 $0.00026 $0.00546
Sonnet 5.5 $0.00013 $0.00273
Haiku 4.5 $0.00007 $0.00137

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

Security

Grade A, and why

sp-context 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 3mo 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.

skills/official/substance_painter/sp-context/SKILL.md · 179 lines

How it starts

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

SP 项目上下文查询

获取当前 Substance Painter 项目状态、纹理集信息、层栈结构、通道列表等。

仅适用于 Substance Painter — 通过 run_python 执行


项目信息

获取当前项目的基本信息:文件路径、保存状态等。

import substance_painter.project

if not substance_painter.project.is_open():
    print("❌ 没有打开的项目")
else:
    file_path = substance_painter.project.file_path()
    needs_saving = substance_painter.project.needs_saving()
    print(f"项目路径: {file_path}")
    print(f"需要保存: {'是' if needs_saving else '否'}")

纹理集列表与分辨率

列出所有纹理集及其分辨率。

import substance_painter.project
import substance_painter.textureset

if not substance_painter.project.is_open():
    print("❌ 没有打开的项目")
else:
    all_ts = substance_painter.textureset.all_texture_sets()
    print(f"纹理集总数: {len(all_ts)}")
    for ts in all_ts:
        res = ts.get_resolution()
        print(f"  {ts.name()} — 分辨率: {res.width}x{res.height}")

层栈遍历(递归打印层树)

递归遍历层栈,打印完整层树结构。

import substance_painter.project
import substance_painter.textureset
import substance_painter.layerstack

def print_layer_tree(nodes, indent=0):
    """递归打印层树"""
    prefix = "  " * indent
    # 获取第一个可用通道用于查询透明度
    ch = substance_painter.textureset.ChannelType.BaseColor
    for node in nodes:
        name = node.get_name()
        # get_opacity 需要传 channel_type(mask 层除外)
        try:
            opacity = node.get_opacity(ch)
        except Exception:
            opacity = node.get_opacity()  # mask 层不需要 channel
        node_type = type(node).__name__
        print(f"{prefix}├─ {name} ({node_type}, opacity={opacity:.0%})")
        # 如果是组层,递归打印子层
        if hasattr(node, 'sub_layers'):
            children = node.sub_layers()
            if children:
                print_layer_tree(children, indent + 1)

if not substance_painter.project.is_open():
    print("❌ 没有打开的项目")
else:
    all_ts = substance_painter.textureset.all_texture_sets()
    for ts in all_ts:
        print(f"\n=== 纹理集: {ts.name()} ===")
        stack = substance_painter.textureset.Stack.from_name(ts.name())
        root_layers = substance_painter.layerstack.get_root_layer_nodes(stack)
        if root_layers:
            print_layer_tree(root_layers)
        else:
            print("  (空层栈)")

Read the full file on GitHub · 179 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 179 lines · 66 tokens per session scan A bba3acbc0477

Subscribe to this mod's changes

sp-context is a skill published in the GitHub repository IvanYangYangXi/artclaw_bridge (39 stars, last pushed 7mo ago), licensed MIT. It adds 66 tokens to every session and 1,366 once invoked, about $0.0003 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-08-30.

Related

sp-context compared with skills from other repositories

sp-context next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sp-contextIvanYangYangXi/artclaw_bridgeSkill397mo agoMITA66Claude Code, Codex
dcc-mcpdcc-mcp/dcc-mcp-coreSkill78todayMITA167Claude Code
dcc-mcp-skills-creatordcc-mcp/dcc-mcp-coreSkill78todayMITA74Claude Code
dcc-cuadcc-mcp/dcc-mcp-coreSkill78todayMITA131Claude Code, Codex
marketplace-publish-extensiondcc-mcp/dcc-mcp-coreSkill78todayMITA88Claude Code
mesh-opsdcc-mcp/dcc-mcp-coreSkill78todayMITA85Claude Code
clawhub-compatdcc-mcp/dcc-mcp-coreSkill78todayMITA59Claude Code