agent-skill-lint 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. agent_skill_lint-0.1.0/.gitignore +61 -0
  2. agent_skill_lint-0.1.0/.skill-lint.yaml.example +23 -0
  3. agent_skill_lint-0.1.0/CHANGELOG.md +27 -0
  4. agent_skill_lint-0.1.0/LICENSE +166 -0
  5. agent_skill_lint-0.1.0/PKG-INFO +462 -0
  6. agent_skill_lint-0.1.0/README.md +262 -0
  7. agent_skill_lint-0.1.0/pyproject.toml +75 -0
  8. agent_skill_lint-0.1.0/src/skill_lint/__init__.py +3 -0
  9. agent_skill_lint-0.1.0/src/skill_lint/cli.py +191 -0
  10. agent_skill_lint-0.1.0/src/skill_lint/config.py +72 -0
  11. agent_skill_lint-0.1.0/src/skill_lint/models.py +94 -0
  12. agent_skill_lint-0.1.0/src/skill_lint/parsers/__init__.py +1 -0
  13. agent_skill_lint-0.1.0/src/skill_lint/parsers/frontmatter.py +56 -0
  14. agent_skill_lint-0.1.0/src/skill_lint/parsers/markdown_body.py +88 -0
  15. agent_skill_lint-0.1.0/src/skill_lint/reporters/__init__.py +1 -0
  16. agent_skill_lint-0.1.0/src/skill_lint/reporters/console.py +84 -0
  17. agent_skill_lint-0.1.0/src/skill_lint/reporters/json_reporter.py +16 -0
  18. agent_skill_lint-0.1.0/src/skill_lint/rules/__init__.py +1 -0
  19. agent_skill_lint-0.1.0/src/skill_lint/rules/base.py +50 -0
  20. agent_skill_lint-0.1.0/src/skill_lint/rules/roo/__init__.py +1 -0
  21. agent_skill_lint-0.1.0/src/skill_lint/rules/roo/body_rules.py +183 -0
  22. agent_skill_lint-0.1.0/src/skill_lint/rules/roo/cross_skill_rules.py +114 -0
  23. agent_skill_lint-0.1.0/src/skill_lint/rules/roo/description_rules.py +186 -0
  24. agent_skill_lint-0.1.0/src/skill_lint/rules/roo/frontmatter_rules.py +206 -0
  25. agent_skill_lint-0.1.0/src/skill_lint/rules/roo/registry.py +9 -0
  26. agent_skill_lint-0.1.0/src/skill_lint/runner.py +125 -0
  27. agent_skill_lint-0.1.0/tests/__init__.py +0 -0
  28. agent_skill_lint-0.1.0/tests/conftest.py +29 -0
  29. agent_skill_lint-0.1.0/tests/fixtures/invalid/broken_link.md +16 -0
  30. agent_skill_lint-0.1.0/tests/fixtures/invalid/missing_name.md +11 -0
  31. agent_skill_lint-0.1.0/tests/fixtures/invalid/short_description.md +12 -0
  32. agent_skill_lint-0.1.0/tests/fixtures/invalid/stub_skill.md +10 -0
  33. agent_skill_lint-0.1.0/tests/fixtures/valid/good_skill.md +27 -0
  34. agent_skill_lint-0.1.0/tests/rules/__init__.py +0 -0
  35. agent_skill_lint-0.1.0/tests/rules/test_body_rules.py +255 -0
  36. agent_skill_lint-0.1.0/tests/rules/test_cross_skill_rules.py +196 -0
  37. agent_skill_lint-0.1.0/tests/rules/test_description_rules.py +188 -0
  38. agent_skill_lint-0.1.0/tests/rules/test_frontmatter_rules.py +270 -0
@@ -0,0 +1,61 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ *.pyd
7
+
8
+ # Virtual environments
9
+ .venv/
10
+ venv/
11
+ env/
12
+ ENV/
13
+
14
+ # Distribution / packaging
15
+ dist/
16
+ build/
17
+ *.egg-info/
18
+ *.egg
19
+ MANIFEST
20
+ .eggs/
21
+
22
+ # PyPI / hatch
23
+ .hatch/
24
+
25
+ # pytest / coverage
26
+ .pytest_cache/
27
+ .coverage
28
+ .coverage.*
29
+ htmlcov/
30
+ coverage.xml
31
+ *.coveragerc
32
+
33
+ # mypy / type checkers
34
+ .mypy_cache/
35
+ .dmypy.json
36
+ dmypy.json
37
+ .pytype/
38
+
39
+ # IDEs
40
+ .idea/
41
+ .vscode/
42
+ *.swp
43
+ *.swo
44
+ *~
45
+
46
+ # macOS
47
+ .DS_Store
48
+ .AppleDouble
49
+ .LSOverride
50
+
51
+ # Secrets / local config
52
+ .env
53
+ .env.*
54
+ *.pem
55
+
56
+ # Logs
57
+ *.log
58
+
59
+ # Temporary files
60
+ *.tmp
61
+ *.bak
@@ -0,0 +1,23 @@
1
+ # .skill-lint.yaml — place at repo root
2
+ # Copy this file to .skill-lint.yaml and customise as needed.
3
+
4
+ rules:
5
+ ROO007:
6
+ min_length: 60 # override default (50)
7
+ ROO008:
8
+ max_length: 300 # override default (400)
9
+ ROO013:
10
+ similarity_threshold: 0.80 # override default (0.75)
11
+
12
+ ignore:
13
+ - ".roo/skills/legacy/" # skip entire directory
14
+ - "ROO031" # globally disable a rule
15
+
16
+ # Custom vague words (appended to built-in list: handles, manages, does, performs, processes)
17
+ vague_words:
18
+ - "facilitates"
19
+ - "coordinates"
20
+
21
+ # Known mode slugs (appended to built-in list)
22
+ extra_mode_slugs:
23
+ - "my-custom-mode"
@@ -0,0 +1,27 @@
1
+ # Changelog
2
+
3
+ All notable changes to `skill-lint` will be documented in this file.
4
+
5
+ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
+ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ---
9
+
10
+ ## [0.1.0] — 2026-06-26
11
+
12
+ ### Added
13
+
14
+ - **22 lint rules** across four categories:
15
+ - Category A (Frontmatter): ROO001–ROO008
16
+ - Category B (Description quality): ROO010–ROO014
17
+ - Category C (Body structure): ROO020–ROO025
18
+ - Category D (Cross-skill consistency): ROO030–ROO032
19
+ - CLI commands: `skill-lint roo check`, `roo rules`, `roo explain`, `doctor`
20
+ - Output formats: `text` (rich terminal), `json`, `github` (Actions annotations)
21
+ - `.skill-lint.yaml` configuration file support
22
+ - Per-rule config overrides (thresholds, lengths)
23
+ - `--ignore` flag and `ignore:` config key for suppressing rules or paths
24
+ - `extra_mode_slugs` config key — extend known slug list without hardcoding
25
+ - `vague_words` config key — extend built-in vague word list
26
+ - Pre-commit hook support
27
+ - 54 unit tests, all passing
@@ -0,0 +1,166 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship made available under
36
+ the License, as indicated by a copyright notice that is included in
37
+ or attached to the work (an example is provided in the Appendix below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship. For the purposes
43
+ of this License, Derivative Works shall not include works that remain
44
+ separable from, or merely link (or bind by name) to the interfaces of,
45
+ the Work and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
48
+ in the Work by the copyright owner or by an individual or Legal Entity
49
+ authorized to submit on behalf of the copyright owner. For the purposes
50
+ of this definition, "submitted" means any form of electronic, verbal,
51
+ or written communication sent to the Licensor or its representatives,
52
+ including but not limited to communication on electronic mailing lists,
53
+ source code control systems, and issue tracking systems that are managed
54
+ by, or on behalf of, the Licensor for the purpose of developing and
55
+ improving the Work, but excluding communication that is conspicuously
56
+ marked or designated in writing by the copyright owner as "Not a
57
+ Contribution."
58
+
59
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
60
+ whom a Contribution has been received by the Licensor and included
61
+ within the Work.
62
+
63
+ 2. Grant of Copyright License. Subject to the terms and conditions of
64
+ this License, each Contributor hereby grants to You a perpetual,
65
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
+ copyright license to reproduce, prepare Derivative Works of,
67
+ publicly display, publicly perform, sublicense, and distribute the
68
+ Work and such Derivative Works in Source or Object form.
69
+
70
+ 3. Grant of Patent License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ (except as stated in this section) patent license to make, have made,
74
+ use, offer to sell, sell, import, and otherwise transfer the Work,
75
+ where such license applies only to those patent claims licensable
76
+ by such Contributor that are necessarily infringed by their
77
+ Contribution(s) alone or by the combination of their Contribution(s)
78
+ with the Work to which such Contribution(s) was submitted. If You
79
+ institute patent litigation against any entity (including a cross-claim
80
+ or counterclaim in a lawsuit) alleging that the Work or any
81
+ Contribution embodied within the Work constitutes direct or contributory
82
+ patent infringement, then any patent licenses granted to You under
83
+ this License for that Work shall terminate as of the date such
84
+ litigation is filed.
85
+
86
+ 4. Redistribution. You may reproduce and distribute copies of the
87
+ Work or Derivative Works thereof in any medium, with or without
88
+ modifications, and in Source or Object form, provided that You
89
+ meet the following conditions:
90
+
91
+ (a) You must give any other recipients of the Work or Derivative
92
+ Works a copy of this License; and
93
+
94
+ (b) You must cause any modified files to carry prominent notices
95
+ stating that You changed the files; and
96
+
97
+ (c) You must retain, in the Source form of any Derivative Works
98
+ that You distribute, all copyright, patent, trademark, and
99
+ attribution notices from the Source form of the Work,
100
+ excluding those notices that do not pertain to any part of
101
+ the Derivative Works; and
102
+
103
+ (d) If the Work includes a "NOTICE" text file as part of its
104
+ distribution, You must include a readable copy of the
105
+ attribution notices contained within such NOTICE file, in
106
+ at least one of the following places: within a NOTICE text
107
+ file distributed as part of the Derivative Works; within
108
+ the Source form or documentation, if provided along with the
109
+ Derivative Works; or, within a display generated by the
110
+ Derivative Works, if and wherever such third-party notices
111
+ normally appear. The contents of the NOTICE file are for
112
+ informational purposes only and do not modify the License.
113
+ You may add Your own attribution notices within Derivative
114
+ Works that You distribute, alongside or in addition to the
115
+ NOTICE text from the Work, provided that such additional
116
+ attribution notices cannot be construed as modifying the License.
117
+
118
+ You may add Your own license statement for Your modifications and
119
+ may provide additional grant of rights to use, copy, modify, merge,
120
+ publish, distribute, sublicense, and/or sell copies of the
121
+ Derivative Works, as set forth in this Section, without any of the
122
+ additional conditions stated in Sections 4(a), 4(b), and 4(c) above.
123
+
124
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
125
+ any Contribution intentionally submitted for inclusion in the Work
126
+ by You to the Licensor shall be under the terms and conditions of
127
+ this License, without any additional terms or conditions.
128
+ Notwithstanding the above, nothing herein shall supersede or modify
129
+ the terms of any separate license agreement you may have executed
130
+ with Licensor regarding such Contributions.
131
+
132
+ 6. Trademarks. This License does not grant permission to use the trade
133
+ names, trademarks, service marks, or product names of the Licensor,
134
+ except as required for reasonable and customary use in describing the
135
+ origin of the Work and reproducing the content of the NOTICE file.
136
+
137
+ 7. Disclaimer of Warranty. Unless required by applicable law or
138
+ agreed to in writing, Licensor provides the Work (and each
139
+ Contributor provides its Contributions) on an "AS IS" BASIS,
140
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
141
+ implied, including, without limitation, any warranties or conditions
142
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
143
+ PARTICULAR PURPOSE. You are solely responsible for determining the
144
+ appropriateness of using or reproducing the Work and assume any
145
+ risks associated with Your exercise of permissions under this License.
146
+
147
+ 8. Limitation of Liability. In no event and under no legal theory,
148
+ whether in tort (including negligence), contract, or otherwise,
149
+ unless required by applicable law (such as deliberate and grossly
150
+ negligent acts) or agreed to in writing, shall any Contributor be
151
+ liable to You for damages, including any direct, indirect, special,
152
+ incidental, or exemplary damages of any character arising as a
153
+ result of this License or out of the use or inability to use the
154
+ Work (including but not limited to damages for loss of goodwill,
155
+ work stoppage, computer failure or malfunction, or all other
156
+ commercial damages or losses), even if such Contributor has been
157
+ advised of the possibility of such damages.
158
+
159
+ 9. Accepting Warranty or Additional Liability. While redistributing
160
+ the Work or Derivative Works thereof, You may choose to offer,
161
+ and charge a fee for, acceptance of support, warranty, indemnity,
162
+ or other liability obligations and/or rights consistent with this
163
+ License. However, in accepting such obligations, You may offer only
164
+ conditions consistent with this License.
165
+
166
+ END OF TERMS AND CONDITIONS