Skills¶
pycodeloop.core.skills.Skill
dataclass
¶
Source code in pycodeloop/core/skills.py
15 16 17 18 19 20 21 | |
pycodeloop.core.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/core/skills.py
171 172 173 174 175 176 177 178 179 180 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 | |
pycodeloop.core.skills.render_skills_index(skills)
¶
Source code in pycodeloop/core/skills.py
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 | |
pycodeloop.core.skills.ReadSkillTool
¶
Bases: Tool
Source code in pycodeloop/core/skills.py
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | |
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/core/skills.py
243 244 | |
run(name)
¶
Source code in pycodeloop/core/skills.py
246 247 248 249 250 251 252 253 254 255 256 | |