Planning With Files
jarrodwatts/claude-code-config
Transforms workflow to use Manus-style persistent markdown files for planning, progress tracking, and knowledge storage.
Structured JSON output from Claude: native JSON schemas, strict tools, local validation, refusal and truncation handling.
$ npx skills add softspark/ai-toolkit --skill json-mode-patterns -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install softspark/ai-toolkit json-mode-patterns --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/app/skills/json-mode-patterns .claude/skills/json-mode-patterns && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "json-mode-patterns" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/json-mode-patterns into .claude/skills/json-mode-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "json-mode-patterns", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/softspark/ai-toolkit/tree/main/app/skills/json-mode-patternsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add softspark/ai-toolkit --skill json-mode-patterns -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install softspark/ai-toolkit json-mode-patterns --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .agents/skills && cp -r skills-src/app/skills/json-mode-patterns .agents/skills/json-mode-patterns && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "json-mode-patterns" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/json-mode-patterns into .agents/skills/json-mode-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "json-mode-patterns", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add softspark/ai-toolkit --skill json-mode-patterns -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install softspark/ai-toolkit json-mode-patterns --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/app/skills/json-mode-patterns .cursor/skills/json-mode-patterns && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "json-mode-patterns" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/json-mode-patterns into .cursor/skills/json-mode-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "json-mode-patterns", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/softspark/ai-toolkit.git --path app/skills/json-mode-patterns--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add softspark/ai-toolkit --skill json-mode-patterns -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install softspark/ai-toolkit json-mode-patterns --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/app/skills/json-mode-patterns .gemini/skills/json-mode-patterns && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "json-mode-patterns" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/json-mode-patterns into .gemini/skills/json-mode-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "json-mode-patterns", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install softspark/ai-toolkit json-mode-patternsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add softspark/ai-toolkit --skill json-mode-patterns -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .github/skills && cp -r skills-src/app/skills/json-mode-patterns .github/skills/json-mode-patterns && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "json-mode-patterns" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/json-mode-patterns into .github/skills/json-mode-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "json-mode-patterns", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add softspark/ai-toolkit --skill json-mode-patterns -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install softspark/ai-toolkit json-mode-patterns --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/app/skills/json-mode-patterns .opencode/skills/json-mode-patterns && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "json-mode-patterns" agent skill from https://github.com/softspark/ai-toolkit/tree/main/app/skills/json-mode-patterns into .opencode/skills/json-mode-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "json-mode-patterns", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
json-mode-patternsStructured JSON output from Claude: native JSON schemas, strict tools, local validation, refusal and truncation handling.
JSON Mode Patterns is an agent skill from softspark/ai-toolkit. Structured JSON output from Claude: native JSON schemas, strict tools, local validation, refusal and truncation handling. Triggers: JSON mode, structured output, schema validation, JSON parsing.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in AI & LLM Engineering, covering Structured output and tool calling. The repository describes itself as: Professional-grade AI coding toolkit: 94 skills, 44 agents, multi-platform (Claude, Cursor, Windsurf, Copilot, Gemini, Cline, Roo Code, Aider, Augment, Antigravity, Codex CLI… The licence is Apache-2.0.
Read from SKILL.md and the folder at commit d64db2b. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadFrom allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
platform.claude.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
JSON Mode Patterns loads about 1.2k tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 343 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from softspark/ai-toolkit at commit d64db2b, republished under its Apache-2.0 licence (© softspark). 343 words, ~1,217 tokens.
.claude/skills/json-mode-patterns/SKILL.md (or your agent's skills folder).Use native JSON outputs through output_config.format for a structured response.
Use strict: true on a tool when its arguments need constrained decoding.
Forcing a tool call alone does not guarantee schema compliance.
This example uses the current Messages API shape. The caller supplies the approved
model and output budget. Numeric limits are checked locally because raw structured
output schemas do not support minimum and maximum.
import json
import math
ANALYSIS_SCHEMA = {
"type": "object",
"properties": {
"sentiment": {"type": "string", "enum": ["positive", "neutral", "negative"]},
"confidence": {"type": "number"},
"themes": {"type": "array", "items": {"type": "string"}},
},
"required": ["sentiment", "confidence", "themes"],
"additionalProperties": False,
}
def validate_analysis(result):
if not isinstance(result, dict) or set(result) != set(ANALYSIS_SCHEMA["required"]):
raise ValueError("Unexpected analysis fields")
sentiment = result["sentiment"]
if not isinstance(sentiment, str) or sentiment.casefold() not in {"positive", "neutral", "negative"}:
raise ValueError("Unknown sentiment")
confidence = result["confidence"]
if (type(confidence) not in (int, float)
or not 0 <= confidence <= 1 or not math.isfinite(confidence)):
raise ValueError("Confidence must be finite and between zero and one")
themes = result["themes"]
if not isinstance(themes, list) or not 1 <= len(themes) <= 10 or not all(isinstance(t, str) for t in themes):
raise ValueError("Expected one to ten theme strings")
return {**result, "sentiment": sentiment.casefold()}
def analyze(client, model, text, max_tokens):
response = client.messages.create(
model=model,
max_tokens=max_tokens,
messages=[{"role": "user", "content": text}],
output_config={"format": {"type": "json_schema", "schema": ANALYSIS_SCHEMA}},
)
if response.stop_reason != "end_turn":
raise ValueError(f"Analysis incomplete: {response.stop_reason}")
blocks = [block.text for block in response.content if block.type == "text"]
if len(blocks) != 1:
raise ValueError("Expected one structured response")
return validate_analysis(json.loads(blocks[0]))Treat the returned confidence as an uncalibrated score until evaluated on labeled data. Schema compliance does not establish factual correctness.
For a real tool, put "strict": True beside name and input_schema.
Require additionalProperties: False on each object and validate business rules
before executing any side effect. Check the expected tool name, content block type
and stop_reason == "tool_use".
Forced tool_choice has thinking-mode restrictions. Verify the selected model's
tool-choice contract before combining it with adaptive or extended thinking;
do not silently disable thinking or change models to force a function call.
refusal and max_tokens before parsing. Neither is a successful structured result.Raw schemas support a subset of JSON Schema. Numeric ranges, string length bounds,
recursive schemas and most array-length constraints are unsupported. Apply these
locally or use client.messages.parse(output_format=YourPydanticModel), whose SDK
helper translates the schema and validates the original model afterward.
The SDK helper's output_format argument is not the raw Messages API field:
messages.create uses output_config.format. No structured-output beta header
is required. Check enum casing locally; avoid labels differing only by case.
Reviewed 2026-09-23:
Use content-moderation-patterns for decision routing and
model-routing-patterns for choosing among approved models.
© softspark, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in app/skills/json-mode-patterns of softspark/ai-toolkit.
Open the folder on GitHubat commit d64db2b
JSON Mode Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| JSON Mode Patterns this skillsoftspark/ai-toolkit | 179 | — | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Planning With Filesjarrodwatts/claude-code-config | 1.1k | 5 repos | ~967 | Automated safety check: Pass | None | |
| Tool Use Data Synthesissunny-glow/Auto-BenchMax | 1.3k | — | ~3.3k | Automated safety check: Pass | None | |
| Agent Harness ConstructionKartikLabhshetwar/mind-mentor | 147 | 7 repos | ~500 | Automated safety check: Pass | Apache-2.0 | |
| Prompt Engineering Patternswshobson/agents | 40k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Model Benchmarkstheopenco/llmgateway | 1.7k | — | ~1.1k | Automated safety check: Notes | Custom licence |
jarrodwatts/claude-code-config
Transforms workflow to use Manus-style persistent markdown files for planning, progress tracking, and knowledge storage.
sunny-glow/Auto-BenchMax
Synthesize training data for ANY tool-use / agentic benchmark, in ANY repo.
KartikLabhshetwar/mind-mentor
Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates.
wshobson/agents
Reference for designing and tuning production LLM prompts: few-shot examples, chain-of-thought, structured outputs, templates and system prompts.
theopenco/llmgateway
Run and report repository model or provider-mapping benchmarks.
mastra-ai/mastra
Universal quality bar and final audit rubric for any agent system prompt.
softspark/ai-toolkit
Prepare or verify a project QA environment with source identity, readiness, browser access, evidence paths and owned cleanup.
softspark/ai-toolkit
Accessibility validator: WCAG 2.1 AA, EN 301 549, EAA. An agent skill from softspark/ai-toolkit.
softspark/ai-toolkit
Analyzes code quality, complexity, patterns across codebase.
softspark/ai-toolkit
Drives a brief, specification, issue or existing PR through implementation, review, tests and QA to a ready PR.
softspark/ai-toolkit
Direct technical voice for docs, README, user-facing text. An agent skill from softspark/ai-toolkit.
softspark/ai-toolkit
Detect/generate/debug CI pipeline config (GitHub Actions, GitLab CI).
Categories
Structured JSON output from Claude: native JSON schemas, strict tools, local validation, refusal and truncation handling. JSON Mode Patterns is an agent skill from softspark/ai-toolkit. Structured JSON output from Claude: native JSON schemas, strict tools, local validation, refusal and truncation handling.
JSON Mode Patterns fits situations like: tasks that involve Structured output and tool calling.
Run `npx skills add softspark/ai-toolkit --skill json-mode-patterns -a claude-code`. Or copy the skill folder (app/skills/json-mode-patterns in softspark/ai-toolkit) into .claude/skills/json-mode-patterns in your project. Claude Code loads it when a task matches its description.
Run `npx skills add softspark/ai-toolkit --skill json-mode-patterns -a codex`. Or copy the skill folder (app/skills/json-mode-patterns in softspark/ai-toolkit) into .agents/skills/json-mode-patterns in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add softspark/ai-toolkit --skill json-mode-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/json-mode-patterns, .gemini/skills/json-mode-patterns, .github/skills/json-mode-patterns and .opencode/skills/json-mode-patterns in your project.
SKILL.md names no scripts, command-line tools or credentials: JSON Mode Patterns is instructions for the agent only. Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read.
SKILL.md names 1 domain. As links in the text: platform.claude.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
JSON Mode Patterns is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with JSON Mode Patterns: Planning With Files (jarrodwatts/claude-code-config, 1.1k stars), Tool Use Data Synthesis (sunny-glow/Auto-BenchMax, 1.3k stars), Agent Harness Construction (KartikLabhshetwar/mind-mentor, 147 stars) and Prompt Engineering Patterns (wshobson/agents, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
softspark (a GitHub user) maintains it in softspark/ai-toolkit, which has 179 GitHub stars. The repository holds 112 skills in this directory. The repository was last updated on October 7, 2026.
Source: softspark/ai-toolkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.