Commit effbd17
authored
Python: [BREAKING] Treat nested SKILL.md content as part of the parent skill (#6849)
* Python: Stop skill discovery at skill boundaries
File-based skill discovery kept descending after finding a SKILL.md, which treated content nested beneath a skill boundary as an independent skill root. Return immediately after recording a directory that contains SKILL.md so everything below it stays part of that skill, and add a regression test with a nested SKILL.md.
Fixes #6682
* Python: Attach nested skill content to the parent skill
Removing the SKILL.md subdirectory skip in resource and script scanning so that content beneath a skill boundary is attached to that skill, and update the discovery docstring and the nested-skill test to match. Complements the discovery early-return so a nested SKILL.md is never treated as an independent skill root.1 parent bc8dd4b commit effbd17
2 files changed
Lines changed: 35 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2953 | 2953 | | |
2954 | 2954 | | |
2955 | 2955 | | |
2956 | | - | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
2957 | 2960 | | |
2958 | 2961 | | |
2959 | | - | |
2960 | | - | |
2961 | | - | |
2962 | | - | |
2963 | 2962 | | |
2964 | 2963 | | |
2965 | 2964 | | |
| |||
3104 | 3103 | | |
3105 | 3104 | | |
3106 | 3105 | | |
3107 | | - | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
3108 | 3110 | | |
3109 | 3111 | | |
3110 | | - | |
3111 | | - | |
3112 | | - | |
3113 | | - | |
3114 | 3112 | | |
3115 | 3113 | | |
3116 | 3114 | | |
| |||
3327 | 3325 | | |
3328 | 3326 | | |
3329 | 3327 | | |
3330 | | - | |
| 3328 | + | |
| 3329 | + | |
| 3330 | + | |
| 3331 | + | |
3331 | 3332 | | |
3332 | 3333 | | |
3333 | 3334 | | |
| |||
3340 | 3341 | | |
3341 | 3342 | | |
3342 | 3343 | | |
| 3344 | + | |
| 3345 | + | |
3343 | 3346 | | |
| 3347 | + | |
3344 | 3348 | | |
3345 | 3349 | | |
3346 | 3350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1807 | 1807 | | |
1808 | 1808 | | |
1809 | 1809 | | |
1810 | | - | |
1811 | | - | |
| 1810 | + | |
| 1811 | + | |
1812 | 1812 | | |
1813 | 1813 | | |
1814 | 1814 | | |
| |||
1828 | 1828 | | |
1829 | 1829 | | |
1830 | 1830 | | |
1831 | | - | |
| 1831 | + | |
1832 | 1832 | | |
1833 | | - | |
| 1833 | + | |
1834 | 1834 | | |
1835 | | - | |
| 1835 | + | |
1836 | 1836 | | |
1837 | 1837 | | |
1838 | 1838 | | |
1839 | | - | |
1840 | | - | |
| 1839 | + | |
| 1840 | + | |
1841 | 1841 | | |
1842 | | - | |
1843 | | - | |
1844 | | - | |
1845 | | - | |
1846 | | - | |
| 1842 | + | |
| 1843 | + | |
1847 | 1844 | | |
1848 | 1845 | | |
1849 | 1846 | | |
| |||
1996 | 1993 | | |
1997 | 1994 | | |
1998 | 1995 | | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
1999 | 2007 | | |
2000 | 2008 | | |
2001 | 2009 | | |
| |||
0 commit comments