Skip to content

fix(claude-api): condense frontmatter description to fit within 1024-char limit - #1684

Open
LuckTerence wants to merge 1 commit into
anthropics:mainfrom
LuckTerence:fix/claude-api-description-length
Open

fix(claude-api): condense frontmatter description to fit within 1024-char limit#1684
LuckTerence wants to merge 1 commit into
anthropics:mainfrom
LuckTerence:fix/claude-api-description-length

Conversation

@LuckTerence

Copy link
Copy Markdown

Closes #1622

Summary

The description frontmatter field in skills/claude-api/SKILL.md previously exceeded pi.dev's 1024-character frontmatter cap (1077 characters raw / 1068 characters parsed). This PR condenses and refines the frontmatter description to 950 characters while preserving all essential semantic triggers, SDK keywords (Anthropic TypeScript SDK, Python SDK, Message Batches, Prompt Caching, etc.), and clarity.

Changes

  • Refined the frontmatter description in skills/claude-api/SKILL.md:
    • Condensed description from 1068 characters down to 950 characters (parsed length).
    • Preserved all SDK keywords (Anthropic TypeScript SDK, Python SDK, Message Batches, Prompt Caching, etc.).
    • Retained all model name triggers (Claude, Anthropic, Opus, Sonnet, Haiku, Fable, anthropic, @anthropic-ai, claude-*, us.anthropic.*, [1m]).
    • Retained task types (agent, MCP, tool-definition, multi-agent, RAG, LLM-judge, computer-use, Message Batches, text operations, debugging).
    • Maintained provider skip conditions (openai, langchain_openai, google.generativeai, genai, mistralai, cohere, ollama).

Validation

  • Verified YAML frontmatter parsing and character length via Python:
    • Previous parsed character count: 1068 chars (1077 raw chars)
    • New parsed character count: 950 chars (<= 1024 character cap)
  • Verified YAML syntax validity using yaml.safe_load.

…char limit (anthropics#1622)

Signed-off-by: LuckTerence <xihuan1127@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

claude-api skill: description exceeds pi.dev's 1024-char frontmatter cap (1077 chars)

1 participant