Quick Start
How It Works
The skill management system provides six core actions for runtime skill manipulation:| Action | Purpose | Security Constraints |
|---|---|---|
| create | Create new skills | 100KB SKILL.md limit, name validation |
| edit | Replace skill content | Preserves frontmatter, atomic writes |
| patch | Targeted find/replace | String matching, traversal protection |
| delete | Remove skills completely | Path validation, atomic removal |
| write_file | Add skill resources | 1MB limit, allowed subdirs only |
| remove_file | Delete skill files | Containment checks, safe removal |
Configuration Options
Skill Management Actions
| Action | Required Args | Optional Args | What it does |
|---|---|---|---|
create | name, content | category | Create a new skill with SKILL.md body |
edit | name, content | - | Replace an existing skill’s SKILL.md body |
patch | name, old_string, new_string | file_path, replace_all | Fuzzy find-and-replace within a skill file |
delete | name | - | Remove a skill entirely |
write_file | name, file_path, file_content | - | Add/overwrite a file inside the skill |
remove_file | name, file_path | - | Delete a file from within the skill |
Python API Reference
Security Guards
| Guard | Purpose | Implementation |
|---|---|---|
| Size Limits | Prevent resource exhaustion | 100KB SKILL.md, 1MB files |
| Name Validation | Secure identifiers | [a-z0-9][a-z0-9._-]* pattern, 64 char limit |
| Path Validation | Prevent traversal | Block .., absolute paths, encoded attacks |
| Atomic Writes | Prevent corruption | Temp file + rename operations |
| Allowed Subdirs | Restrict file placement | references/, templates/, scripts/, assets/ only |
Common Patterns
User Teaching Flow
Skill Evolution
Adding Executable Resources
Best Practices
Security-First Design
Security-First Design
All skill operations are workspace-contained and use atomic writes via temp files. Never bypass name validation or path checks. Skills inherit workspace security automatically.
Progressive Learning
Progressive Learning
Start with simple skills and let agents enhance them through patch operations. This creates more natural learning patterns than full rewrites.
Skill Organization
Skill Organization
Use meaningful categories and names. Skills are stored in
~/.praisonai/skills/ by default, with clean directory structure per skill.Error Handling
Error Handling
All skill operations return detailed JSON results with success flags and error messages. Always check
result["success"] before proceeding.Related
Skills (Concepts)
Understanding what skills are and how they work
Workspace
How workspace containment secures skill operations

