skills/templatize-a-prompt/SKILL.md
# Templatize A Prompt Convert a prompt with specific values into a reusable template by identifying and extracting variables. Concrete values are replaced with uppercase variable placeholders. Part of the closed research preview Prompt Tools API. ## API Details - **API**: Anthropic Prompt Tools API - **Method**: POST - **Path**: `/v1/experimental/templatize_prompt` - **Operation ID**: `templatizePrompt` - **OpenAPI**: [anthropic-prompts-api-openapi.yml](../../openapi/anthropic-prompts-api-ope
npx skillsauth add naftiko/anthropic-sandbox skills/templatize-a-promptInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Convert a prompt with specific values into a reusable template by identifying and extracting variables. Concrete values are replaced with uppercase variable placeholders. Part of the closed research preview Prompt Tools API.
/v1/experimental/templatize_prompttemplatizePromptMock server URL: http://localhost:8080/rest/anthropic-prompt-tools-api/1.0.0/v1/experimental/templatize_prompt
anthropic-version: 2023-06-01anthropic-beta: prompt-tools-2025-04-02x-api-key: {api-key}Content-Type: application/json{
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Translate hello to German"
}
]
}
],
"system": "You are a professional English to German translator"
}
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| messages | array | Yes | The prompt to templatize |
| system | string | No | System prompt to also templatize |
curl -X POST "http://localhost:8080/rest/anthropic-prompt-tools-api/1.0.0/v1/experimental/templatize_prompt" \
-H "anthropic-version: 2023-06-01" \
-H "anthropic-beta: prompt-tools-2025-04-02" \
-H "x-api-key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"messages": [{"role": "user", "content": [{"type": "text", "text": "Translate hello to German"}]}]}'
{
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Translate {{WORD_TO_TRANSLATE}} to {{TARGET_LANGUAGE}}"
}
]
}
],
"system": "You are a professional English to {{TARGET_LANGUAGE}} translator",
"usage": {
"input_tokens": 15,
"output_tokens": 25
},
"variable_values": {
"WORD_TO_TRANSLATE": "hello",
"TARGET_LANGUAGE": "German"
}
}
When the user asks to templatize, parameterize, or make a prompt reusable, use this operation by making a POST request to /v1/experimental/templatize_prompt. The variable_values in the response shows what was extracted, and the returned messages contain the template with {{VARIABLE_NAME}} placeholders.
development
# Update Workspace Update the name or display color of an existing workspace. ## API Details - **API**: Anthropic Administrative API - **Method**: POST - **Path**: `/organizations/workspaces/{workspace_id}` - **Operation ID**: `updateWorkspace` - **OpenAPI**: [anthropic-admin-api-openapi.yml](../../openapi/anthropic-admin-api-openapi.yml) ## Sandbox Mock server URL: `http://localhost:8080/rest/anthropic-admin-api/1.0.0/organizations/workspaces/{workspace_id}` ## Required Headers - `anthro
development
# Update Workspace Member Update the workspace role of a specific member within a workspace. ## API Details - **API**: Anthropic Administrative API - **Method**: POST - **Path**: `/organizations/workspaces/{workspace_id}/members/{user_id}` - **Operation ID**: `updateWorkspaceMember` - **OpenAPI**: [anthropic-admin-api-openapi.yml](../../openapi/anthropic-admin-api-openapi.yml) ## Sandbox Mock server URL: `http://localhost:8080/rest/anthropic-admin-api/1.0.0/organizations/workspaces/{workspa
development
# Update Organization Member Update the role or other attributes of a specific user within the organization. ## API Details - **API**: Anthropic Administrative API - **Method**: POST - **Path**: `/organizations/users/{user_id}` - **Operation ID**: `updateOrganizationMember` - **OpenAPI**: [anthropic-admin-api-openapi.yml](../../openapi/anthropic-admin-api-openapi.yml) ## Sandbox Mock server URL: `http://localhost:8080/rest/anthropic-admin-api/1.0.0/organizations/users/{user_id}` ## Require
development
# Update API Key Update the name or status of an existing API key. Can be used to activate or deactivate a key. ## API Details - **API**: Anthropic Administrative API - **Method**: POST - **Path**: `/organizations/api_keys/{api_key_id}` - **Operation ID**: `updateApiKey` - **OpenAPI**: [anthropic-admin-api-openapi.yml](../../openapi/anthropic-admin-api-openapi.yml) ## Sandbox Mock server URL: `http://localhost:8080/rest/anthropic-admin-api/1.0.0/organizations/api_keys/{api_key_id}` ## Requ