Skills¶
pycodeloop.skills.Skill
dataclass
¶
Source code in pycodeloop/skills.py
15 16 17 18 19 20 21 | |
pycodeloop.skills.discover_skills(cwd=None, home=None, sources=None, use_cache=True)
¶
Scan well-known locations Claude Code, Cursor, and the AGENTS.md convention (Codex and others) use for skills/instructions.
Results are cached in ~/.pycodeloop/config.json under "skills_cache",
keyed by cwd and invalidated automatically when any matched file's
mtime changes — unchanged skills are served from cache, unread.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cwd
|
Path | None
|
Project directory to scan. Defaults to the current directory. |
None
|
home
|
Path | None
|
User home directory to scan. Defaults to |
None
|
sources
|
set[str] | None
|
Limit to these sources ("claude-skill", "claude-memory", "cursor-rule", "agents-md"). Defaults to all of them. |
None
|
use_cache
|
bool
|
Set False to force a full rescan and refresh the cache. |
True
|
Source code in pycodeloop/skills.py
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | |
pycodeloop.skills.render_skills_index(skills)
¶
Source code in pycodeloop/skills.py
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 | |
pycodeloop.skills.ReadSkillTool
¶
Bases: Tool
Source code in pycodeloop/skills.py
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 | |
description = 'Read the full content of a discovered skill/instruction file by name.'
class-attribute
instance-attribute
¶
name = 'read_skill'
class-attribute
instance-attribute
¶
parameters = {'type': 'object', 'properties': {'name': {'type': 'string'}}, 'required': ['name']}
class-attribute
instance-attribute
¶
__init__(skills)
¶
Source code in pycodeloop/skills.py
258 259 | |
run(name)
¶
Source code in pycodeloop/skills.py
261 262 263 264 265 266 267 268 269 270 271 | |