> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# learn • AI Agent SDK

> Grounded skill-authoring prompt builder for the 'learn from sources' flow.

# learn

<Badge color="blue">AI Agent</Badge>

Grounded skill-authoring prompt builder for the "learn from sources" flow.

This module hosts :func:`build_learn_prompt`, a curated authoring directive that
turns a user request like *"read ./my-repo and the docs in ./docs/*.pdf and make
a 'deploy-flow' skill"\* into a single-turn instruction. The agent then gathers
the named sources with the tools it already has (file read, fetch, PDF read) and
authors **one grounded SKILL.md** via the existing `skill_manage` tool.

It is intentionally prompt-only (no heavy imports, no new engine) so it stays in
the core SDK alongside the skills subsystem.

## Import

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents.skills import learn
```

## Functions

<CardGroup cols={2}>
  <Card title="build_learn_prompt()" icon="function" href="../functions/build_learn_prompt">
    Build a grounded skill-authoring directive from a user request.
  </Card>
</CardGroup>

### Constants

| Name                 | Value                                                                                                                                                                                                                  |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `_LEARN_HOUSE_STYLE` | `'You are authoring a single, reusable Agent Skill by learning from real source material.\n\nThe user\'s request describes the sources to learn from and the skill to produce:\n&lt;request&gt;\n{request}\n&lt;/r...` |

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Agent Learn" icon="graduation-cap" href="/docs/docs/concepts/agent-learn" />

  <Card title="Learn Configuration" icon="gear" href="/docs/docs/configuration/learn-config" />
</CardGroup>
