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 $0.00033 $0.00683
Sonnet 5 $0.00013 $0.00273
Haiku 4.5 $0.00007 $0.00137

Measured 11d ago against content hash bba3acbc0477, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 11d 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. 11d 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 (35 stars, last pushed 4mo ago), licensed MIT. It adds 66 tokens to every session and 1,366 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

dcc-mcp-core

Foundation library for the DCC Model Context Protocol (MCP) ecosystem. Provides Rust-powered action management, skills system, IPC transport, MCP Streamable HTTP server (2025-03-26 spec, with 2025-06-18 and 2025-11-25 awareness), sandbox security, shared memory, screen capture, USD scene support, and telemetry for…

dcc-mcp/dcc-mcp-core · 109 tokens

maya-pipeline

Domain skill — Maya asset pipeline orchestration: set up project directory structures, export scenes to USD, and coordinate multi-step DCC workflows. Use when initialising a Maya project or exporting assets for a downstream pipeline. Not for raw geometry editing — use maya-geometry for that. Not for low-level USD file…

dcc-mcp/dcc-mcp-core · 74 tokens

imagemagick-tools

Infrastructure skill — image processing and manipulation via ImageMagick: resize, composite, convert formats, add watermarks. Use when batch-processing textures, thumbnails, or rendered images at the file level. Not for in-DCC texture or material editing — use a domain skill bound to the specific DCC for that.

dcc-mcp/dcc-mcp-core · 67 tokens

asset-source

Gateway skill for cross-DCC asset import — search and resolve assets into a validated AssetDescriptor (local path + attribution). Demo source returns static catalog entries; production sources can add download or remote resolution without changing the contract.

dcc-mcp/dcc-mcp-core · 47 tokens

ffmpeg-media

Infrastructure skill — media conversion and processing via FFmpeg: convert video/audio formats, extract frames, resize, and transcode. Use when manipulating raw media files (mp4, mov, wav, image sequences) regardless of DCC context. Not for DCC-specific render output handling — use a domain pipeline skill for…

dcc-mcp/dcc-mcp-core · 77 tokens

maya-geometry

Domain skill — Maya geometry primitives: create spheres, cubes, cylinders; bevel, extrude, and merge polygon components. Use for individual geometry creation or editing operations inside Maya. Not for full asset export pipelines — use maya-pipeline for that. Not for USD scene inspection — use usd-tools for that.

dcc-mcp/dcc-mcp-core · 65 tokens