artifact-type-tailored-context

Compress artifacts into token-budgeted summaries with type-specific strategies.

102|10|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/closedloop-ai/claude-plugins --skill artifact-type-tailored-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: artifact-type-tailored-context
Source: https://github.com/closedloop-ai/claude-plugins/tree/main/plugins/judges/skills/artifact-type-tailored-context
Command: npx skills add https://github.com/closedloop-ai/claude-plugins --skill artifact-type-tailored-context

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires count_tokens.py, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill efficiently compresses large artifact files to fit within token budgets, ensuring that critical information is preserved without overwhelming the AI's context window.

Core Features & Use Cases

  • Tiered Summarization: Applies different compression strategies based on artifact size and type (code diffs, JSON, logs, markdown).
  • Token Budget Enforcement: Guarantees output stays within specified token limits, using hard truncation when necessary.
  • Use Case: When evaluating a large code diff, this Skill can summarize method bodies while preserving function signatures, making the diff reviewable within Claude's context limits.

Quick Start

Use the artifact-type-tailored-context skill to compress the file 'large_log.txt' with a token budget of 2000.

Frequently Asked Questions about artifact-type-tailored-context

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compress large code diffs and logs to fit within an AI token budget?

To compress large code diffs and logs within a token budget, this Skill applies tiered summarization strategies that preserve function signatures while summarizing method bodies and truncates content when necessary to guarantee output stays within limits.

What is the best way to summarize JSON artifacts for AI judge evaluation?

The best way to summarize JSON artifacts for judge evaluation is using type-specific compression strategies within a token budget, which reads raw artifacts, counts tokens, and returns compacted content with metadata using forked context for isolation.

How does tiered summarization work for markdown and code diffs?

Tiered summarization for markdown and code diffs works by applying different compression strategies based on artifact size and type, preserving critical structural elements like function signatures while condensing the surrounding content to fit token limits.

Can I enforce a strict token limit when compressing large log files?

Yes, you can enforce a strict token limit when compressing large log files. The Skill guarantees output stays within specified token limits by counting tokens and applying hard truncation when necessary to prevent context window overflow.

Does this artifact compression approach support markdown and JSON files?

Yes, this artifact compression approach supports markdown and JSON files. It applies specific compression strategies tailored to each artifact type, including code diffs and logs, ensuring critical information is preserved without overwhelming the context window.