# pinned_skill_body

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/skills/invocation/pinned_skill_body)

Return the instructions the SDK pins for `skill`.

The SDK skips a skill it cannot pin. The agent server raises instead, so a
skill the user invoked never runs silently without its instructions.

## Signature

```python
pinned_skill_body(
    skill: SkillMetadata,
    content: str | None,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `skill` | `SkillMetadata` | Yes | Metadata of the skill to pin. |
| `content` | `str \| None` | Yes | Raw `SKILL.md` text, or `None` when it could not be read. |

## Returns

`str`

The `SKILL.md` body without its frontmatter.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/efa9f5364b83e9367ea57d9c21b15b4d81fdcb7a/libs/code/deepagents_code/skills/invocation.py#L132)