com.doji.package-authoring: Skill for Codex

.codex/skills/package-authoring-test-creation/SKILL.md

package-authoring-test-creation is a skill for Codex from julienkay/com.doji.package-authoring. It costs 61 tokens per session (1,032 once invoked), scanned A, original, MIT.

A guide for adding Unity Editor tests to an existing package-authoring test suite. Unity Editor tests check code that runs inside the Unity development environment.

In plain words
What is it for?
Testing generated manifests, project files, template substitution, scripting behavior, and cleanup of temporary output folders.
Why use it?
It helps test generated packages and projects through their public API, so regressions are caught in the files users actually receive.

Skill for Codex

Written for Codex: installed under .codex/. Also seen: mentions AGENTS.md.

This is julienkay/com.doji.package-authoring's own configuration. It tells Codex how to work on com.doji.package-authoring itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything com.doji.package-authoring configures →

Reuse

Borrowing it

Nothing to install: this file belongs to julienkay/com.doji.package-authoring. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/julienkay/com.doji.package-authoring/master/.codex/skills/package-authoring-test-creation/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/julienkay/com.doji.package-authoring

Made for: 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 package-authoring-test-creation

README.md
[![agentmods](https://agentmods.dev/badge/skills/julienkay/com.doji.package-authoring/package-authoring-test-creation/github.svg)](https://agentmods.dev/skills/julienkay/com.doji.package-authoring/package-authoring-test-creation)
Your own site
<a href="https://agentmods.dev/skills/julienkay/com.doji.package-authoring/package-authoring-test-creation"><img src="https://agentmods.dev/badge/skills/julienkay/com.doji.package-authoring/package-authoring-test-creation/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 package-authoring-test-creation

Your own site · 80×15
<a href="https://agentmods.dev/skills/julienkay/com.doji.package-authoring/package-authoring-test-creation"><img src="https://agentmods.dev/badge/skills/julienkay/com.doji.package-authoring/package-authoring-test-creation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,032 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.00061 $0.01032
Opus 5 $0.00030 $0.00516
Sonnet 5 $0.00012 $0.00206
Haiku 4.5 $0.00006 $0.00103

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

Security

Grade A, and why

package-authoring-test-creation 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 9d 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.

.codex/skills/package-authoring-test-creation/SKILL.md · 98 lines

How it starts

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

Package Authoring Test Creation

Use this skill for tests that extend the existing package-authoring editor test suite in com.doji.package-authoring.

Primary scope:

  • com.doji.package-authoring/Tests/Editor/
  • com.doji.package-authoring/Editor/API/PackageAuthoringApi.cs
  • generated output rooted in temp directories

Choose the destination fixture before writing the test:

  • Add manifest assertions to PackageAuthoringApiManifestGenerationTests.
  • Add templated text-file assertions to PackageAuthoringApiTemplateResolutionTests.
  • Add companion project manifest assertions to PackageAuthoringApiProjectGenerationTests.
  • Only create a new fixture when the new assertions introduce a distinct output contract that would make the existing fixtures mixed or noisy.

Default testing strategy:

  1. Prefer black-box editor tests that call PackageAuthoringApi.GeneratePackage(...) or PackageAuthoringApi.GenerateProject(...).
  2. Generate into a unique temp directory under Path.GetTempPath().
  3. Assert on concrete generated files, not internal helper return values.
  4. Clean up the temp directory in TearDown.

What to cover first:

  • tokenized values that must survive UI input and resolve in generated files
  • generated package.json content such as author.url, documentationUrl, dependencies, and Unity version fields
  • generated companion project Packages/manifest.json content such as local package reference, IDE package selection, and testables
  • generated templated files like repository README.md, AGENTS.md, docs landing pages, and DocFX config files

What to avoid by default:

  • reaching into internal template helpers when the public API can exercise the same path
  • brittle assertions on full file snapshots when a few targeted assertions capture the contract
  • tests that require opening Unity projects, launching external tools, or initializing git unless the user explicitly wants that coverage
  • creating a new fixture when one of the existing output-contract fixtures is already the right home

Implementation pattern:

internal sealed class PackageAuthoringApiManifestGenerationTests : PackageAuthoringApiTestBase {
    [Test]
    public void GeneratePackage_ResolvesTokenizedManifestUrls() {
        ProjectSettings projectSettings = CreateProjectSettings("Tokenized Companion");
        PackageSettings packageSettings = CreatePackageSettings(
            authorUrl: "https://docs.doji-tech.com/{{PACKAGE_NAME}}",
            documentationUrl: "https://docs.doji-tech.com/{{PACKAGE_NAME}}/manual");

        string rootDirectory = PackageAuthoringApi.GeneratePackage(
            projectSettings,
            packageSettings,
            CreateRepoSettings(),
            openProjectAfterCreation: false);

        string packageManifestPath = Path.Combine(
            rootDirectory,
            "com.doji.tests.tokenized",
            "package.json");

        // Assert on generated files here.
    }
}

Assertion pattern:

  1. Build ProjectSettings, PackageSettings, and RepoSettings with only the fields needed for the scenario.
  2. Disable git initialization unless the test is explicitly about git behavior.
  3. Parse generated JSON with JObject.Parse(...) for manifest assertions.
  4. For package ids or dependency keys that contain dots, read from the containing JObject by exact key, for example dependencies["com.doji.package-authoring"], instead of SelectToken(...).
  5. For template outputs, assert both the resolved expected value and absence of unresolved tokens where that matters.

When adding or updating tests:

  1. Start by placing the test in the existing fixture whose output contract already matches the new assertion.
  2. Reuse PackageAuthoringApiTestBase for repeated temp-directory lifecycle and canonical settings builders unless there is a concrete reason not to.
  3. Keep PackageAuthoringApiTestBase focused on stable cross-fixture concerns only; keep output-specific assertions and scenario-specific helpers in the concrete fixtures.
  4. Create a new fixture only when the new test target is a separate output contract from the existing suites.
  5. Verify the test still reflects current on-disk package behavior, especially after generator refactors.
  6. If the work introduces a new generated surface, add at least one regression assertion at that surface rather than only testing supporting internals.
  7. Treat dotted package names as literal JSON property names, not JSONPath segments.

Read the full file on GitHub · 98 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. 9d ago First seen · 98 lines · 61 tokens per session scan A fe45f4d8f04f

Subscribe to this mod's changes

package-authoring-test-creation is a skill published in the GitHub repository julienkay/com.doji.package-authoring (5 stars, last pushed 3mo ago), licensed MIT. It adds 61 tokens to every session and 1,032 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-31.

Related

Other skills, from other repositories

tests-run

Execute Unity tests (EditMode or PlayMode) and return per-test results. Supports filtering by test assembly, namespace, class, and method. Refreshes the AssetDatabase first; defers execution across domain reloads if scripts changed. Precondition: every open scene must be saved — dirty scenes abort the run.

IvanMurzak/Unity-MCP · 68 tokens

gdunit-driver

Run gdUnit4 unit tests and parse results into structured output. Use this skill after writing or modifying code to verify correctness via unit tests, when diagnosing test failures, or when writing new test files. Triggers: "run tests", "test fails", "write a test", any gdUnit4/unit test mention. Supports both GDScript…

valkor-ai/loom · 84 tokens

unity-testability

Advise on Unity testability.

Besty0728/Unity-Skills · 10 tokens

godot

Develop, test, automate, export, and deploy Godot 4.x games. Use when working with Godot projects, GDScript, GdUnit4, PlayGodot, project exports, or Godot CI and deployment.

Randroids-Dojo/skills · 51 tokens

roblox-testing

Testing, debugging, and profiling Roblox experiences — Developer Console, Output, logging discipline, pcall and assertion patterns, TestEZ unit tests, the MicroProfiler (client and server), Scene Analysis, Script Profiler, memory diagnostics, network debugging, Luau type checking, and connection cleanup. Use when…

nonlooped/roblox-suite · 80 tokens

unity-testing

Unity 6 testing guide. Use when writing unit tests, integration tests, or doing TDD with Unity Test Framework. Covers Edit Mode and Play Mode tests, NUnit attributes ([Test], [UnityTest], [SetUp], [TearDown]), testing MonoBehaviours and coroutines, and CI/CD integration. Based on Unity 6.3 LTS documentation.

Nice-Wolf-Studio/unity-claude-skills · 78 tokens