@lifeaitools/rdc-skills 0.34.0 → 0.35.0

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 (60) hide show
  1. package/.claude-plugin/plugin.json +284 -1
  2. package/VALIDATOR-ARCHITECTURE.md +534 -0
  3. package/commands/analyze-tests.md +11 -0
  4. package/commands/check-clean-code.md +11 -0
  5. package/commands/check-packages.md +10 -0
  6. package/commands/compare-compliance.md +14 -0
  7. package/commands/full-analysis.md +50 -0
  8. package/commands/get-refactoring-plan.md +13 -0
  9. package/commands/quick-check.md +13 -0
  10. package/commands/recover.md +149 -0
  11. package/commands/review-arch.md +12 -0
  12. package/commands/review.md +12 -113
  13. package/commands/suggest-patterns.md +11 -0
  14. package/commands/validate-solid.md +11 -0
  15. package/package.json +14 -2
  16. package/scripts/architecture-score.mjs +157 -0
  17. package/scripts/clean-code-score.mjs +177 -0
  18. package/scripts/duplication-score.mjs +66 -0
  19. package/scripts/lib/architecture-scoring.mjs +695 -0
  20. package/scripts/lib/clean-code-scoring.mjs +258 -0
  21. package/scripts/lib/duplication-scoring.mjs +238 -0
  22. package/scripts/lib/language-plugin.mjs +82 -0
  23. package/scripts/lib/package-metrics.mjs +439 -0
  24. package/scripts/lib/pattern-scoring.mjs +351 -0
  25. package/scripts/lib/plugins/treesitter.mjs +1182 -0
  26. package/scripts/lib/plugins/typescript.mjs +672 -0
  27. package/scripts/lib/refactoring-scoring.mjs +307 -0
  28. package/scripts/lib/solid-scoring.mjs +101 -0
  29. package/scripts/lib/test-smell-scoring.mjs +581 -0
  30. package/scripts/lib/vendor/codeflow-parser/.source-commit +1 -0
  31. package/scripts/lib/vendor/codeflow-parser/grammars.d.ts +23 -0
  32. package/scripts/lib/vendor/codeflow-parser/grammars.js +57 -0
  33. package/scripts/lib/vendor/codeflow-parser/memberFacts.d.ts +274 -0
  34. package/scripts/lib/vendor/codeflow-parser/memberFacts.js +1117 -0
  35. package/scripts/lib/vendor/codeflow-parser/nativeParser.d.ts +115 -0
  36. package/scripts/lib/vendor/codeflow-parser/nativeParser.js +759 -0
  37. package/scripts/lib/vendor/codeflow-parser/package.json +3 -0
  38. package/scripts/lib/vendor/codeflow-parser/xmlParser.d.ts +77 -0
  39. package/scripts/lib/vendor/codeflow-parser/xmlParser.js +400 -0
  40. package/scripts/package-metrics-cli.mjs +112 -0
  41. package/scripts/pattern-score.mjs +143 -0
  42. package/scripts/refactoring-score.mjs +253 -0
  43. package/scripts/solid-score.mjs +337 -0
  44. package/skills/architecture-reviewer/SKILL.md +287 -0
  45. package/skills/clean-code-analyzer/SKILL.md +147 -0
  46. package/skills/package-design/SKILL.md +118 -0
  47. package/skills/pattern-advisor/SKILL.md +237 -0
  48. package/skills/pattern-refactoring-guide/SKILL.md +262 -0
  49. package/skills/review/SKILL.md +29 -0
  50. package/skills/solid-validator/SKILL.md +92 -0
  51. package/skills/testing-strategy/SKILL.md +132 -0
  52. package/tests/lib/architecture-scoring.test.mjs +335 -0
  53. package/tests/lib/clean-code-scoring.test.mjs +241 -0
  54. package/tests/lib/duplication-scoring.test.mjs +144 -0
  55. package/tests/lib/fixtures.mjs +58 -0
  56. package/tests/lib/package-metrics.test.mjs +241 -0
  57. package/tests/lib/pattern-scoring.test.mjs +251 -0
  58. package/tests/lib/refactoring-scoring.test.mjs +264 -0
  59. package/tests/lib/solid-scoring.test.mjs +291 -0
  60. package/tests/lib/test-smell-scoring.test.mjs +281 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rdc",
3
- "version": "0.33.0",
3
+ "version": "0.34.1",
4
4
  "description": "RDC typed-agent dispatch skill suite for Claude Code — plan, build, review, overnight unattended builds with work-item tracking and TDD enforcement.",
5
5
  "author": {
6
6
  "name": "LIFEAI",
@@ -1728,6 +1728,289 @@
1728
1728
  "output_contract": "guides/output-contract.md",
1729
1729
  "enabled_default": true,
1730
1730
  "codeflow_required": true
1731
+ },
1732
+ "solid-validator": {
1733
+ "name": "solid-validator",
1734
+ "slash": "rdc:solid-validator",
1735
+ "category": "build",
1736
+ "usage": "rdc:solid-validator <path> [--diff <ref>] [--config <file>]",
1737
+ "args": {
1738
+ "positional": [
1739
+ {
1740
+ "name": "path",
1741
+ "required": true,
1742
+ "description": "file or directory to score",
1743
+ "accepts": "path"
1744
+ }
1745
+ ],
1746
+ "flags": [
1747
+ {
1748
+ "name": "--diff",
1749
+ "type": "string",
1750
+ "default": null,
1751
+ "description": "regression-gate against this git ref"
1752
+ },
1753
+ {
1754
+ "name": "--config",
1755
+ "type": "string",
1756
+ "default": null,
1757
+ "description": "path to .solid-score.yml"
1758
+ }
1759
+ ]
1760
+ },
1761
+ "requires": [
1762
+ "git"
1763
+ ],
1764
+ "produces": [],
1765
+ "default_model": "sonnet",
1766
+ "triggers": [
1767
+ "solid score",
1768
+ "architecture score",
1769
+ "form fit function",
1770
+ "clean architecture check"
1771
+ ],
1772
+ "follows": [
1773
+ "build"
1774
+ ],
1775
+ "leads_to": [
1776
+ "review"
1777
+ ],
1778
+ "sandbox_aware": false,
1779
+ "output_contract": "guides/output-contract.md",
1780
+ "enabled_default": true,
1781
+ "codeflow_required": false
1782
+ },
1783
+ "architecture-reviewer": {
1784
+ "name": "architecture-reviewer",
1785
+ "slash": "rdc:architecture-reviewer",
1786
+ "category": "build",
1787
+ "usage": "rdc:architecture-reviewer <path> [--diff <ref>]",
1788
+ "args": {
1789
+ "positional": [
1790
+ {
1791
+ "name": "path",
1792
+ "required": true,
1793
+ "description": "target to review",
1794
+ "accepts": "path"
1795
+ }
1796
+ ],
1797
+ "flags": [
1798
+ {
1799
+ "name": "--diff",
1800
+ "type": "string",
1801
+ "default": null,
1802
+ "description": "new/changed code only"
1803
+ }
1804
+ ]
1805
+ },
1806
+ "requires": [
1807
+ "git",
1808
+ "agent-dispatch"
1809
+ ],
1810
+ "produces": [],
1811
+ "default_model": "opus",
1812
+ "triggers": [
1813
+ "layering review",
1814
+ "dependency direction",
1815
+ "boundary violation"
1816
+ ],
1817
+ "follows": [
1818
+ "solid-validator"
1819
+ ],
1820
+ "leads_to": [
1821
+ "pattern-refactoring-guide"
1822
+ ],
1823
+ "sandbox_aware": false,
1824
+ "output_contract": "guides/output-contract.md",
1825
+ "enabled_default": true,
1826
+ "codeflow_required": false
1827
+ },
1828
+ "testing-strategy": {
1829
+ "name": "testing-strategy",
1830
+ "slash": "rdc:testing-strategy",
1831
+ "category": "build",
1832
+ "usage": "rdc:testing-strategy <path>",
1833
+ "args": {
1834
+ "positional": [
1835
+ {
1836
+ "name": "path",
1837
+ "required": true,
1838
+ "description": "surface to recommend a test level/shape for",
1839
+ "accepts": "path"
1840
+ }
1841
+ ],
1842
+ "flags": []
1843
+ },
1844
+ "requires": [],
1845
+ "produces": [],
1846
+ "default_model": "sonnet",
1847
+ "triggers": [
1848
+ "what test level",
1849
+ "assertion vs golden capture",
1850
+ "test shape"
1851
+ ],
1852
+ "follows": [],
1853
+ "leads_to": [
1854
+ "build"
1855
+ ],
1856
+ "sandbox_aware": false,
1857
+ "output_contract": "guides/output-contract.md",
1858
+ "enabled_default": true,
1859
+ "codeflow_required": false
1860
+ },
1861
+ "clean-code-analyzer": {
1862
+ "name": "clean-code-analyzer",
1863
+ "slash": "rdc:check-clean-code",
1864
+ "category": "build",
1865
+ "usage": "rdc:check-clean-code <path> [--diff <ref>]",
1866
+ "args": {
1867
+ "positional": [
1868
+ {
1869
+ "name": "path",
1870
+ "required": true,
1871
+ "description": "target to analyze",
1872
+ "accepts": "path"
1873
+ }
1874
+ ],
1875
+ "flags": [
1876
+ {
1877
+ "name": "--diff",
1878
+ "type": "string",
1879
+ "default": null,
1880
+ "description": "new/changed code only"
1881
+ }
1882
+ ]
1883
+ },
1884
+ "requires": [
1885
+ "agent-dispatch"
1886
+ ],
1887
+ "produces": [],
1888
+ "default_model": "sonnet",
1889
+ "triggers": [
1890
+ "dead code",
1891
+ "naming smell",
1892
+ "cyclomatic complexity"
1893
+ ],
1894
+ "follows": [
1895
+ "solid-validator"
1896
+ ],
1897
+ "leads_to": [
1898
+ "pattern-refactoring-guide"
1899
+ ],
1900
+ "sandbox_aware": false,
1901
+ "output_contract": "guides/output-contract.md",
1902
+ "enabled_default": true,
1903
+ "codeflow_required": false
1904
+ },
1905
+ "package-design": {
1906
+ "name": "package-design",
1907
+ "slash": "rdc:check-packages",
1908
+ "category": "build",
1909
+ "usage": "rdc:check-packages <path>",
1910
+ "args": {
1911
+ "positional": [
1912
+ {
1913
+ "name": "path",
1914
+ "required": true,
1915
+ "description": "package to review",
1916
+ "accepts": "path"
1917
+ }
1918
+ ],
1919
+ "flags": []
1920
+ },
1921
+ "requires": [
1922
+ "agent-dispatch"
1923
+ ],
1924
+ "produces": [],
1925
+ "default_model": "sonnet",
1926
+ "triggers": [
1927
+ "package boundary",
1928
+ "export surface",
1929
+ "module too big"
1930
+ ],
1931
+ "follows": [],
1932
+ "leads_to": [
1933
+ "pattern-refactoring-guide"
1934
+ ],
1935
+ "sandbox_aware": false,
1936
+ "output_contract": "guides/output-contract.md",
1937
+ "enabled_default": true,
1938
+ "codeflow_required": false
1939
+ },
1940
+ "pattern-advisor": {
1941
+ "name": "pattern-advisor",
1942
+ "slash": "rdc:suggest-patterns",
1943
+ "category": "build",
1944
+ "usage": "rdc:suggest-patterns <path>",
1945
+ "args": {
1946
+ "positional": [
1947
+ {
1948
+ "name": "path",
1949
+ "required": true,
1950
+ "description": "code to recommend a pattern for",
1951
+ "accepts": "path"
1952
+ }
1953
+ ],
1954
+ "flags": []
1955
+ },
1956
+ "requires": [],
1957
+ "produces": [],
1958
+ "default_model": "sonnet",
1959
+ "triggers": [
1960
+ "design pattern",
1961
+ "which pattern",
1962
+ "strategy vs switch"
1963
+ ],
1964
+ "follows": [
1965
+ "solid-validator"
1966
+ ],
1967
+ "leads_to": [
1968
+ "pattern-refactoring-guide"
1969
+ ],
1970
+ "sandbox_aware": false,
1971
+ "output_contract": "guides/output-contract.md",
1972
+ "enabled_default": true,
1973
+ "codeflow_required": false
1974
+ },
1975
+ "pattern-refactoring-guide": {
1976
+ "name": "pattern-refactoring-guide",
1977
+ "slash": "rdc:get-refactoring-plan",
1978
+ "category": "build",
1979
+ "usage": "rdc:get-refactoring-plan <finding>",
1980
+ "args": {
1981
+ "positional": [
1982
+ {
1983
+ "name": "finding",
1984
+ "required": true,
1985
+ "description": "a finding from another surface to plan a fix for",
1986
+ "accepts": "text"
1987
+ }
1988
+ ],
1989
+ "flags": []
1990
+ },
1991
+ "requires": [],
1992
+ "produces": [],
1993
+ "default_model": "opus",
1994
+ "triggers": [
1995
+ "refactor plan",
1996
+ "before after",
1997
+ "how do I fix this finding"
1998
+ ],
1999
+ "follows": [
2000
+ "architecture-reviewer",
2001
+ "clean-code-analyzer",
2002
+ "package-design",
2003
+ "pattern-advisor",
2004
+ "solid-validator"
2005
+ ],
2006
+ "leads_to": [
2007
+ "build",
2008
+ "fixit"
2009
+ ],
2010
+ "sandbox_aware": false,
2011
+ "output_contract": "guides/output-contract.md",
2012
+ "enabled_default": true,
2013
+ "codeflow_required": false
1731
2014
  }
1732
2015
  }
1733
2016
  }