claude-sdk-system-prompt

Configure Claude Agent SDK system prompts with file-based and layered settings.

2|1|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/Folken2/nuvel --skill claude-sdk-system-prompt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-sdk-system-prompt
Source: https://github.com/Folken2/nuvel/tree/main/nuvel/backends/claude_agent_sdk/skills/claude-sdk-system-prompt
Command: npx skills add https://github.com/Folken2/nuvel --skill claude-sdk-system-prompt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the complexity of managing agent personas, operating principles, and instructions within the Claude Agent SDK, preventing unmaintainable code and inconsistent agent behavior.

Core Features & Use Cases

  • Flexible Prompting: Choose between static strings, external files, or the claude_code preset to balance simplicity and control.
  • Dynamic Context: Learn how to rebuild agent options per turn or use hooks to inject context without losing session continuity.
  • Layered Configuration: Implement setting_sources to automatically discover and layer instructions from user, project, and local directories.

Quick Start

Configure the agent to use a dedicated system prompt file by setting the system_prompt field to a dictionary with type file and the path to your prompt markdown file.

Frequently Asked Questions about claude-sdk-system-prompt

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

FAQPage Schema
How do I configure system prompts in the Claude Agent SDK?

You can configure system prompts in the Claude Agent SDK by setting the system_prompt field to a dictionary with type set to file and a path to your markdown file, transitioning from inline strings to maintainable file-based prompts.

What is the best way to manage agent personas and instructions across development and production environments?

Managing agent personas and instructions across environments is best handled by implementing setting_sources to automatically discover and layer instructions from user, project, and local directories, ensuring consistent configuration and behavior throughout the lifecycle.

Can I use preset personalities like claude_code for specialized agent behavior?

Yes, you can use the claude_code preset to integrate specialized agent behavior. This allows you to balance simplicity and control by choosing between static strings, external files, or presets when configuring your agent identity and operating principles.

How do I inject dynamic context into agent options without losing session continuity?

You can inject dynamic context into agent options without losing session continuity by rebuilding agent options per turn or using hooks. This approach allows you to add context dynamically while maintaining the ongoing session state.

Why should I move from inline strings to file-based system prompts for my agent?

Moving from inline strings to file-based system prompts prevents unmaintainable code and inconsistent agent behavior. This approach addresses the complexity of managing agent personas, operating principles, and instructions within the Claude Agent SDK.