xtrm-tools 0.7.0 → 0.7.1
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.
- package/.xtrm/config/README.md +10 -0
- package/{config/mcp_servers.json → .xtrm/config/claude.mcp.json} +0 -28
- package/{config → .xtrm/config}/instructions/agents-top.md +12 -3
- package/{config → .xtrm/config}/instructions/claude-top.md +12 -3
- package/{config → .xtrm/config}/pi/extensions/beads/index.ts +44 -13
- package/{config → .xtrm/config}/pi/extensions/custom-footer/index.ts +59 -82
- package/{config → .xtrm/config}/pi/extensions/xtrm-ui/index.ts +2 -2
- package/{config → .xtrm/config}/pi/install-schema.json +2 -2
- package/.xtrm/config/pi.mcp.json +39 -0
- package/.xtrm/config/settings.json +41 -0
- package/.xtrm/extensions/auto-session-name/index.ts +29 -0
- package/.xtrm/extensions/auto-session-name/package.json +16 -0
- package/.xtrm/extensions/auto-update/index.ts +71 -0
- package/.xtrm/extensions/auto-update/package.json +16 -0
- package/.xtrm/extensions/beads/index.ts +232 -0
- package/.xtrm/extensions/beads/package.json +19 -0
- package/.xtrm/extensions/compact-header/index.ts +69 -0
- package/.xtrm/extensions/compact-header/package.json +16 -0
- package/.xtrm/extensions/core/adapter.ts +52 -0
- package/.xtrm/extensions/core/guard-rules.ts +100 -0
- package/.xtrm/extensions/core/lib.ts +3 -0
- package/.xtrm/extensions/core/logger.ts +45 -0
- package/.xtrm/extensions/core/package.json +18 -0
- package/.xtrm/extensions/core/runner.ts +71 -0
- package/.xtrm/extensions/core/session-state.ts +59 -0
- package/.xtrm/extensions/custom-footer/index.ts +398 -0
- package/.xtrm/extensions/custom-footer/package.json +19 -0
- package/.xtrm/extensions/custom-provider-qwen-cli/index.ts +363 -0
- package/.xtrm/extensions/custom-provider-qwen-cli/package.json +1 -0
- package/.xtrm/extensions/git-checkpoint/index.ts +53 -0
- package/.xtrm/extensions/git-checkpoint/package.json +16 -0
- package/.xtrm/extensions/lsp-bootstrap/index.ts +134 -0
- package/.xtrm/extensions/lsp-bootstrap/package.json +17 -0
- package/.xtrm/extensions/pi-serena-compact/index.ts +121 -0
- package/.xtrm/extensions/pi-serena-compact/package.json +16 -0
- package/.xtrm/extensions/quality-gates/index.ts +66 -0
- package/.xtrm/extensions/quality-gates/package.json +19 -0
- package/.xtrm/extensions/service-skills/index.ts +108 -0
- package/.xtrm/extensions/service-skills/package.json +19 -0
- package/.xtrm/extensions/session-flow/index.ts +96 -0
- package/.xtrm/extensions/session-flow/package.json +19 -0
- package/.xtrm/extensions/xtrm-loader/index.ts +152 -0
- package/.xtrm/extensions/xtrm-loader/package.json +19 -0
- package/.xtrm/extensions/xtrm-ui/format.ts +93 -0
- package/.xtrm/extensions/xtrm-ui/index.ts +1044 -0
- package/.xtrm/extensions/xtrm-ui/package.json +10 -0
- package/.xtrm/extensions/xtrm-ui/themes/pidex-dark.json +85 -0
- package/.xtrm/extensions/xtrm-ui/themes/pidex-light.json +85 -0
- package/{hooks → .xtrm/hooks}/README.md +2 -1
- package/{hooks → .xtrm/hooks}/beads-commit-gate.mjs +4 -0
- package/.xtrm/hooks/beads-memory-gate.mjs +119 -0
- package/{plugins/xtrm-tools → .xtrm}/hooks/quality-check-env.mjs +1 -4
- package/.xtrm/hooks/statusline.mjs +156 -0
- package/{plugins/xtrm-tools → .xtrm}/hooks/using-xtrm-reminder.mjs +8 -7
- package/.xtrm/registry.json +1323 -0
- package/CHANGELOG.md +27 -0
- package/README.md +3 -1
- package/cli/dist/index.cjs +27158 -31320
- package/cli/dist/index.cjs.map +1 -1
- package/cli/package.json +2 -1
- package/package.json +12 -12
- package/.claude-plugin/marketplace.json +0 -19
- package/.claude-plugin/plugin.json +0 -9
- package/config/hooks.json +0 -83
- package/config/settings.json +0 -70
- package/hooks/beads-memory-gate.mjs +0 -94
- package/hooks/quality-check-env.mjs +0 -79
- package/hooks/statusline.mjs +0 -183
- package/hooks/tsconfig-cache.json +0 -4
- package/hooks/using-xtrm-reminder.mjs +0 -47
- package/plugins/xtrm-tools/.claude-plugin/plugin.json +0 -9
- package/plugins/xtrm-tools/.mcp.json +0 -18
- package/plugins/xtrm-tools/hooks/README.md +0 -61
- package/plugins/xtrm-tools/hooks/beads-claim-sync.mjs +0 -154
- package/plugins/xtrm-tools/hooks/beads-commit-gate.mjs +0 -70
- package/plugins/xtrm-tools/hooks/beads-compact-restore.mjs +0 -77
- package/plugins/xtrm-tools/hooks/beads-compact-save.mjs +0 -63
- package/plugins/xtrm-tools/hooks/beads-edit-gate.mjs +0 -85
- package/plugins/xtrm-tools/hooks/beads-gate-core.mjs +0 -236
- package/plugins/xtrm-tools/hooks/beads-gate-messages.mjs +0 -75
- package/plugins/xtrm-tools/hooks/beads-gate-utils.mjs +0 -176
- package/plugins/xtrm-tools/hooks/beads-memory-gate.mjs +0 -94
- package/plugins/xtrm-tools/hooks/beads-stop-gate.mjs +0 -53
- package/plugins/xtrm-tools/hooks/gitnexus/gitnexus-hook.cjs +0 -222
- package/plugins/xtrm-tools/hooks/hooks.json +0 -129
- package/plugins/xtrm-tools/hooks/quality-check.cjs +0 -1286
- package/plugins/xtrm-tools/hooks/quality-check.py +0 -345
- package/plugins/xtrm-tools/hooks/statusline.mjs +0 -183
- package/plugins/xtrm-tools/hooks/tsconfig-cache.json +0 -4
- package/plugins/xtrm-tools/hooks/worktree-boundary.mjs +0 -33
- package/plugins/xtrm-tools/hooks/xtrm-logger.mjs +0 -123
- package/plugins/xtrm-tools/hooks/xtrm-session-logger.mjs +0 -27
- package/plugins/xtrm-tools/hooks/xtrm-tool-logger.mjs +0 -53
- package/plugins/xtrm-tools/skills/README.txt +0 -31
- package/plugins/xtrm-tools/skills/clean-code/SKILL.md +0 -201
- package/plugins/xtrm-tools/skills/creating-service-skills/SKILL.md +0 -433
- package/plugins/xtrm-tools/skills/creating-service-skills/references/script_quality_standards.md +0 -425
- package/plugins/xtrm-tools/skills/creating-service-skills/references/service_skill_system_guide.md +0 -278
- package/plugins/xtrm-tools/skills/creating-service-skills/scripts/bootstrap.py +0 -326
- package/plugins/xtrm-tools/skills/creating-service-skills/scripts/deep_dive.py +0 -304
- package/plugins/xtrm-tools/skills/creating-service-skills/scripts/scaffolder.py +0 -482
- package/plugins/xtrm-tools/skills/delegating/SKILL.md +0 -196
- package/plugins/xtrm-tools/skills/delegating/config.yaml +0 -210
- package/plugins/xtrm-tools/skills/delegating/references/orchestration-protocols.md +0 -41
- package/plugins/xtrm-tools/skills/docker-expert/SKILL.md +0 -409
- package/plugins/xtrm-tools/skills/documenting/CHANGELOG.md +0 -23
- package/plugins/xtrm-tools/skills/documenting/README.md +0 -148
- package/plugins/xtrm-tools/skills/documenting/SKILL.md +0 -113
- package/plugins/xtrm-tools/skills/documenting/examples/example_pattern.md +0 -70
- package/plugins/xtrm-tools/skills/documenting/examples/example_reference.md +0 -70
- package/plugins/xtrm-tools/skills/documenting/examples/example_ssot_analytics.md +0 -64
- package/plugins/xtrm-tools/skills/documenting/examples/example_workflow.md +0 -141
- package/plugins/xtrm-tools/skills/documenting/references/changelog-format.md +0 -97
- package/plugins/xtrm-tools/skills/documenting/references/metadata-schema.md +0 -136
- package/plugins/xtrm-tools/skills/documenting/references/taxonomy.md +0 -81
- package/plugins/xtrm-tools/skills/documenting/references/versioning-rules.md +0 -78
- package/plugins/xtrm-tools/skills/documenting/scripts/bump_version.sh +0 -60
- package/plugins/xtrm-tools/skills/documenting/scripts/changelog/__init__.py +0 -0
- package/plugins/xtrm-tools/skills/documenting/scripts/changelog/add_entry.py +0 -216
- package/plugins/xtrm-tools/skills/documenting/scripts/changelog/bump_release.py +0 -117
- package/plugins/xtrm-tools/skills/documenting/scripts/changelog/init_changelog.py +0 -54
- package/plugins/xtrm-tools/skills/documenting/scripts/changelog/validate_changelog.py +0 -128
- package/plugins/xtrm-tools/skills/documenting/scripts/drift_detector.py +0 -266
- package/plugins/xtrm-tools/skills/documenting/scripts/generate_template.py +0 -311
- package/plugins/xtrm-tools/skills/documenting/scripts/list_by_category.sh +0 -84
- package/plugins/xtrm-tools/skills/documenting/scripts/orchestrator.py +0 -255
- package/plugins/xtrm-tools/skills/documenting/scripts/validate_metadata.py +0 -242
- package/plugins/xtrm-tools/skills/documenting/templates/CHANGELOG.md.template +0 -13
- package/plugins/xtrm-tools/skills/documenting/tests/integration_test.sh +0 -70
- package/plugins/xtrm-tools/skills/documenting/tests/test_changelog.py +0 -201
- package/plugins/xtrm-tools/skills/documenting/tests/test_drift_detector.py +0 -80
- package/plugins/xtrm-tools/skills/documenting/tests/test_orchestrator.py +0 -52
- package/plugins/xtrm-tools/skills/documenting/tests/test_validate_metadata.py +0 -64
- package/plugins/xtrm-tools/skills/find-skills/SKILL.md +0 -133
- package/plugins/xtrm-tools/skills/gitnexus-exploring/SKILL.md +0 -75
- package/plugins/xtrm-tools/skills/gitnexus-impact-analysis/SKILL.md +0 -94
- package/plugins/xtrm-tools/skills/gitnexus-refactoring/SKILL.md +0 -113
- package/plugins/xtrm-tools/skills/hook-development/SKILL.md +0 -797
- package/plugins/xtrm-tools/skills/hook-development/examples/load-context.sh +0 -55
- package/plugins/xtrm-tools/skills/hook-development/examples/quality-check.js +0 -1168
- package/plugins/xtrm-tools/skills/hook-development/examples/validate-bash.sh +0 -43
- package/plugins/xtrm-tools/skills/hook-development/examples/validate-write.sh +0 -38
- package/plugins/xtrm-tools/skills/hook-development/references/advanced.md +0 -527
- package/plugins/xtrm-tools/skills/hook-development/references/migration.md +0 -369
- package/plugins/xtrm-tools/skills/hook-development/references/patterns.md +0 -412
- package/plugins/xtrm-tools/skills/hook-development/scripts/README.md +0 -164
- package/plugins/xtrm-tools/skills/hook-development/scripts/hook-linter.sh +0 -153
- package/plugins/xtrm-tools/skills/hook-development/scripts/test-hook.sh +0 -252
- package/plugins/xtrm-tools/skills/hook-development/scripts/validate-hook-schema.sh +0 -159
- package/plugins/xtrm-tools/skills/obsidian-cli/SKILL.md +0 -106
- package/plugins/xtrm-tools/skills/orchestrating-agents/SKILL.md +0 -135
- package/plugins/xtrm-tools/skills/orchestrating-agents/config.yaml +0 -45
- package/plugins/xtrm-tools/skills/orchestrating-agents/references/agent-context-integration.md +0 -37
- package/plugins/xtrm-tools/skills/orchestrating-agents/references/examples.md +0 -45
- package/plugins/xtrm-tools/skills/orchestrating-agents/references/handover-protocol.md +0 -31
- package/plugins/xtrm-tools/skills/orchestrating-agents/references/workflows.md +0 -42
- package/plugins/xtrm-tools/skills/orchestrating-agents/scripts/detect_neighbors.py +0 -23
- package/plugins/xtrm-tools/skills/planning/SKILL.md +0 -405
- package/plugins/xtrm-tools/skills/planning/evals/evals.json +0 -19
- package/plugins/xtrm-tools/skills/prompt-improving/README.md +0 -162
- package/plugins/xtrm-tools/skills/prompt-improving/SKILL.md +0 -74
- package/plugins/xtrm-tools/skills/prompt-improving/references/analysis_commands.md +0 -24
- package/plugins/xtrm-tools/skills/prompt-improving/references/chain_of_thought.md +0 -24
- package/plugins/xtrm-tools/skills/prompt-improving/references/mcp_definitions.md +0 -20
- package/plugins/xtrm-tools/skills/prompt-improving/references/multishot.md +0 -23
- package/plugins/xtrm-tools/skills/prompt-improving/references/xml_core.md +0 -60
- package/plugins/xtrm-tools/skills/python-testing/SKILL.md +0 -815
- package/plugins/xtrm-tools/skills/scoping-service-skills/SKILL.md +0 -231
- package/plugins/xtrm-tools/skills/scoping-service-skills/scripts/scope.py +0 -74
- package/plugins/xtrm-tools/skills/senior-backend/SKILL.md +0 -209
- package/plugins/xtrm-tools/skills/senior-backend/references/api_design_patterns.md +0 -103
- package/plugins/xtrm-tools/skills/senior-backend/references/backend_security_practices.md +0 -103
- package/plugins/xtrm-tools/skills/senior-backend/references/database_optimization_guide.md +0 -103
- package/plugins/xtrm-tools/skills/senior-backend/scripts/api_load_tester.py +0 -114
- package/plugins/xtrm-tools/skills/senior-backend/scripts/api_scaffolder.py +0 -114
- package/plugins/xtrm-tools/skills/senior-backend/scripts/database_migration_tool.py +0 -114
- package/plugins/xtrm-tools/skills/senior-data-scientist/SKILL.md +0 -226
- package/plugins/xtrm-tools/skills/senior-data-scientist/references/experiment_design_frameworks.md +0 -80
- package/plugins/xtrm-tools/skills/senior-data-scientist/references/feature_engineering_patterns.md +0 -80
- package/plugins/xtrm-tools/skills/senior-data-scientist/references/statistical_methods_advanced.md +0 -80
- package/plugins/xtrm-tools/skills/senior-data-scientist/scripts/experiment_designer.py +0 -100
- package/plugins/xtrm-tools/skills/senior-data-scientist/scripts/feature_engineering_pipeline.py +0 -100
- package/plugins/xtrm-tools/skills/senior-data-scientist/scripts/model_evaluation_suite.py +0 -100
- package/plugins/xtrm-tools/skills/senior-devops/SKILL.md +0 -209
- package/plugins/xtrm-tools/skills/senior-devops/references/cicd_pipeline_guide.md +0 -103
- package/plugins/xtrm-tools/skills/senior-devops/references/deployment_strategies.md +0 -103
- package/plugins/xtrm-tools/skills/senior-devops/references/infrastructure_as_code.md +0 -103
- package/plugins/xtrm-tools/skills/senior-devops/scripts/deployment_manager.py +0 -114
- package/plugins/xtrm-tools/skills/senior-devops/scripts/pipeline_generator.py +0 -114
- package/plugins/xtrm-tools/skills/senior-devops/scripts/terraform_scaffolder.py +0 -114
- package/plugins/xtrm-tools/skills/senior-security/SKILL.md +0 -209
- package/plugins/xtrm-tools/skills/senior-security/references/cryptography_implementation.md +0 -103
- package/plugins/xtrm-tools/skills/senior-security/references/penetration_testing_guide.md +0 -103
- package/plugins/xtrm-tools/skills/senior-security/references/security_architecture_patterns.md +0 -103
- package/plugins/xtrm-tools/skills/senior-security/scripts/pentest_automator.py +0 -114
- package/plugins/xtrm-tools/skills/senior-security/scripts/security_auditor.py +0 -114
- package/plugins/xtrm-tools/skills/senior-security/scripts/threat_modeler.py +0 -114
- package/plugins/xtrm-tools/skills/skill-creator/LICENSE.txt +0 -202
- package/plugins/xtrm-tools/skills/skill-creator/SKILL.md +0 -479
- package/plugins/xtrm-tools/skills/skill-creator/agents/analyzer.md +0 -274
- package/plugins/xtrm-tools/skills/skill-creator/agents/comparator.md +0 -202
- package/plugins/xtrm-tools/skills/skill-creator/agents/grader.md +0 -223
- package/plugins/xtrm-tools/skills/skill-creator/assets/eval_review.html +0 -146
- package/plugins/xtrm-tools/skills/skill-creator/eval-viewer/generate_review.py +0 -471
- package/plugins/xtrm-tools/skills/skill-creator/eval-viewer/viewer.html +0 -1325
- package/plugins/xtrm-tools/skills/skill-creator/references/schemas.md +0 -430
- package/plugins/xtrm-tools/skills/skill-creator/scripts/__init__.py +0 -0
- package/plugins/xtrm-tools/skills/skill-creator/scripts/aggregate_benchmark.py +0 -401
- package/plugins/xtrm-tools/skills/skill-creator/scripts/generate_report.py +0 -326
- package/plugins/xtrm-tools/skills/skill-creator/scripts/improve_description.py +0 -248
- package/plugins/xtrm-tools/skills/skill-creator/scripts/package_skill.py +0 -136
- package/plugins/xtrm-tools/skills/skill-creator/scripts/quick_validate.py +0 -103
- package/plugins/xtrm-tools/skills/skill-creator/scripts/run_eval.py +0 -310
- package/plugins/xtrm-tools/skills/skill-creator/scripts/run_loop.py +0 -332
- package/plugins/xtrm-tools/skills/skill-creator/scripts/utils.py +0 -47
- package/plugins/xtrm-tools/skills/sync-docs/SKILL.md +0 -286
- package/plugins/xtrm-tools/skills/sync-docs/evals/evals.json +0 -89
- package/plugins/xtrm-tools/skills/sync-docs/references/doc-structure.md +0 -99
- package/plugins/xtrm-tools/skills/sync-docs/references/schema.md +0 -103
- package/plugins/xtrm-tools/skills/sync-docs/scripts/changelog/add_entry.py +0 -216
- package/plugins/xtrm-tools/skills/sync-docs/scripts/context_gatherer.py +0 -240
- package/plugins/xtrm-tools/skills/sync-docs/scripts/doc_structure_analyzer.py +0 -495
- package/plugins/xtrm-tools/skills/sync-docs/scripts/drift_detector.py +0 -563
- package/plugins/xtrm-tools/skills/sync-docs/scripts/validate_doc.py +0 -365
- package/plugins/xtrm-tools/skills/sync-docs/scripts/validate_metadata.py +0 -185
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/benchmark.json +0 -293
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/benchmark.md +0 -13
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-doc-audit/eval_metadata.json +0 -27
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-doc-audit/with_skill/outputs/result.md +0 -210
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-doc-audit/with_skill/run-1/grading.json +0 -28
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-doc-audit/with_skill/run-1/timing.json +0 -1
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-doc-audit/without_skill/outputs/result.md +0 -101
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-doc-audit/without_skill/run-1/grading.json +0 -28
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-doc-audit/without_skill/run-1/timing.json +0 -5
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-doc-audit/without_skill/timing.json +0 -5
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-fix-mode/eval_metadata.json +0 -27
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-fix-mode/with_skill/outputs/result.md +0 -198
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-fix-mode/with_skill/run-1/grading.json +0 -28
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-fix-mode/with_skill/run-1/timing.json +0 -1
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-fix-mode/without_skill/outputs/result.md +0 -94
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-fix-mode/without_skill/run-1/grading.json +0 -28
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-fix-mode/without_skill/run-1/timing.json +0 -1
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-sprint-closeout/eval_metadata.json +0 -27
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-sprint-closeout/with_skill/outputs/result.md +0 -237
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-sprint-closeout/with_skill/run-1/grading.json +0 -28
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-sprint-closeout/with_skill/run-1/timing.json +0 -1
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-sprint-closeout/without_skill/outputs/result.md +0 -134
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-sprint-closeout/without_skill/run-1/grading.json +0 -28
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-1/eval-sprint-closeout/without_skill/run-1/timing.json +0 -1
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/benchmark.json +0 -297
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/benchmark.md +0 -13
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-doc-audit/eval_metadata.json +0 -27
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-doc-audit/with_skill/outputs/result.md +0 -137
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-doc-audit/with_skill/run-1/grading.json +0 -92
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-doc-audit/with_skill/run-1/timing.json +0 -1
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-doc-audit/without_skill/outputs/result.md +0 -134
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-doc-audit/without_skill/run-1/grading.json +0 -86
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-doc-audit/without_skill/run-1/timing.json +0 -1
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-fix-mode/eval_metadata.json +0 -27
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-fix-mode/with_skill/outputs/result.md +0 -193
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-fix-mode/with_skill/run-1/grading.json +0 -72
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-fix-mode/with_skill/run-1/timing.json +0 -1
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-fix-mode/without_skill/outputs/result.md +0 -211
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-fix-mode/without_skill/run-1/grading.json +0 -91
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-fix-mode/without_skill/run-1/timing.json +0 -5
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-sprint-closeout/eval_metadata.json +0 -27
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-sprint-closeout/with_skill/outputs/result.md +0 -182
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-sprint-closeout/with_skill/run-1/grading.json +0 -95
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-sprint-closeout/with_skill/run-1/timing.json +0 -1
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-sprint-closeout/without_skill/outputs/result.md +0 -222
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-sprint-closeout/without_skill/run-1/grading.json +0 -88
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-2/eval-sprint-closeout/without_skill/run-1/timing.json +0 -5
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/benchmark.json +0 -298
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/benchmark.md +0 -13
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-doc-audit/eval_metadata.json +0 -27
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-doc-audit/with_skill/outputs/result.md +0 -125
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-doc-audit/with_skill/run-1/grading.json +0 -97
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-doc-audit/with_skill/run-1/timing.json +0 -5
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-doc-audit/without_skill/outputs/result.md +0 -144
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-doc-audit/without_skill/run-1/grading.json +0 -78
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-doc-audit/without_skill/run-1/timing.json +0 -5
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-fix-mode/eval_metadata.json +0 -27
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-fix-mode/with_skill/outputs/result.md +0 -104
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-fix-mode/with_skill/run-1/grading.json +0 -91
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-fix-mode/with_skill/run-1/timing.json +0 -5
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-fix-mode/without_skill/outputs/result.md +0 -79
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-fix-mode/without_skill/run-1/grading.json +0 -82
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-fix-mode/without_skill/run-1/timing.json +0 -5
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/eval_metadata.json +0 -27
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/with_skill/outputs/phase1_context.json +0 -302
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/with_skill/outputs/phase2_drift.txt +0 -33
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/with_skill/outputs/phase3_analysis.json +0 -114
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/with_skill/outputs/phase4_fix.txt +0 -118
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/with_skill/outputs/phase5_validate.txt +0 -38
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/with_skill/outputs/result.md +0 -158
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/with_skill/run-1/grading.json +0 -95
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/with_skill/run-1/timing.json +0 -5
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/without_skill/outputs/result.md +0 -71
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/without_skill/run-1/grading.json +0 -90
- package/plugins/xtrm-tools/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/without_skill/run-1/timing.json +0 -5
- package/plugins/xtrm-tools/skills/test-planning/SKILL.md +0 -465
- package/plugins/xtrm-tools/skills/test-planning/evals/evals.json +0 -23
- package/plugins/xtrm-tools/skills/updating-service-skills/SKILL.md +0 -136
- package/plugins/xtrm-tools/skills/updating-service-skills/scripts/drift_detector.py +0 -222
- package/plugins/xtrm-tools/skills/using-quality-gates/SKILL.md +0 -254
- package/plugins/xtrm-tools/skills/using-serena-lsp/README.md +0 -8
- package/plugins/xtrm-tools/skills/using-serena-lsp/REFERENCE.md +0 -194
- package/plugins/xtrm-tools/skills/using-serena-lsp/SKILL.md +0 -82
- package/plugins/xtrm-tools/skills/using-service-skills/SKILL.md +0 -108
- package/plugins/xtrm-tools/skills/using-service-skills/scripts/cataloger.py +0 -74
- package/plugins/xtrm-tools/skills/using-service-skills/scripts/skill_activator.py +0 -152
- package/plugins/xtrm-tools/skills/using-service-skills/scripts/test_skill_activator.py +0 -58
- package/plugins/xtrm-tools/skills/using-tdd/SKILL.md +0 -410
- package/plugins/xtrm-tools/skills/using-xtrm/SKILL.md +0 -127
- package/plugins/xtrm-tools/skills/xt-debugging/SKILL.md +0 -149
- package/plugins/xtrm-tools/skills/xt-end/SKILL.md +0 -297
- package/plugins/xtrm-tools/skills/xt-merge/SKILL.md +0 -313
- package/project-skills/quality-gates/.claude/hooks/hook-config.json +0 -66
- package/project-skills/quality-gates/.claude/hooks/quality-check.cjs +0 -1286
- package/project-skills/quality-gates/.claude/hooks/quality-check.py +0 -334
- package/project-skills/quality-gates/.claude/settings.json +0 -3
- package/project-skills/quality-gates/.claude/skills/using-quality-gates/SKILL.md +0 -254
- package/project-skills/quality-gates/README.md +0 -109
- package/project-skills/quality-gates/evals/evals.json +0 -181
- package/project-skills/quality-gates/workspace/iteration-1/FINAL-EVAL-SUMMARY.md +0 -75
- package/project-skills/quality-gates/workspace/iteration-1/edge-case-auto-fix-verification/with_skill/outputs/response.md +0 -59
- package/project-skills/quality-gates/workspace/iteration-1/edge-case-mixed-language-project/with_skill/outputs/response.md +0 -60
- package/project-skills/quality-gates/workspace/iteration-1/eval-summary.md +0 -105
- package/project-skills/quality-gates/workspace/iteration-1/partial-install-python-only/with_skill/outputs/response.md +0 -93
- package/project-skills/quality-gates/workspace/iteration-1/python-refactor-request/with_skill/outputs/response.md +0 -104
- package/project-skills/quality-gates/workspace/iteration-1/quality-gate-error-fix/with_skill/outputs/response.md +0 -74
- package/project-skills/quality-gates/workspace/iteration-1/should-not-trigger-general-chat/with_skill/outputs/response.md +0 -18
- package/project-skills/quality-gates/workspace/iteration-1/should-not-trigger-math-question/with_skill/outputs/response.md +0 -18
- package/project-skills/quality-gates/workspace/iteration-1/should-not-trigger-unrelated-coding/with_skill/outputs/response.md +0 -56
- package/project-skills/quality-gates/workspace/iteration-1/tdd-guard-blocking-confusion/with_skill/outputs/response.md +0 -67
- package/project-skills/quality-gates/workspace/iteration-1/typescript-feature-with-tests/with_skill/outputs/response.md +0 -97
- package/project-skills/service-skills-set/.claude/git-hooks/doc_reminder.py +0 -67
- package/project-skills/service-skills-set/.claude/git-hooks/skill_staleness.py +0 -194
- package/project-skills/service-skills-set/.claude/service-registry.json +0 -4
- package/project-skills/service-skills-set/.claude/settings.json +0 -37
- package/project-skills/service-skills-set/.claude/skills/creating-service-skills/SKILL.md +0 -433
- package/project-skills/service-skills-set/.claude/skills/creating-service-skills/references/script_quality_standards.md +0 -425
- package/project-skills/service-skills-set/.claude/skills/creating-service-skills/references/service_skill_system_guide.md +0 -278
- package/project-skills/service-skills-set/.claude/skills/creating-service-skills/scripts/bootstrap.py +0 -308
- package/project-skills/service-skills-set/.claude/skills/creating-service-skills/scripts/deep_dive.py +0 -304
- package/project-skills/service-skills-set/.claude/skills/creating-service-skills/scripts/scaffolder.py +0 -482
- package/project-skills/service-skills-set/.claude/skills/scoping-service-skills/SKILL.md +0 -231
- package/project-skills/service-skills-set/.claude/skills/scoping-service-skills/scripts/scope.py +0 -74
- package/project-skills/service-skills-set/.claude/skills/updating-service-skills/SKILL.md +0 -136
- package/project-skills/service-skills-set/.claude/skills/updating-service-skills/scripts/drift_detector.py +0 -222
- package/project-skills/service-skills-set/.claude/skills/using-service-skills/SKILL.md +0 -108
- package/project-skills/service-skills-set/.claude/skills/using-service-skills/scripts/cataloger.py +0 -74
- package/project-skills/service-skills-set/.claude/skills/using-service-skills/scripts/skill_activator.py +0 -152
- package/project-skills/service-skills-set/README.md +0 -93
- package/project-skills/service-skills-set/install-service-skills.py +0 -193
- package/project-skills/service-skills-set/service-skills-readme.md +0 -236
- package/skills/README.txt +0 -31
- package/skills/clean-code/SKILL.md +0 -201
- package/skills/creating-service-skills/SKILL.md +0 -433
- package/skills/creating-service-skills/references/script_quality_standards.md +0 -425
- package/skills/creating-service-skills/references/service_skill_system_guide.md +0 -278
- package/skills/creating-service-skills/scripts/bootstrap.py +0 -326
- package/skills/creating-service-skills/scripts/deep_dive.py +0 -304
- package/skills/creating-service-skills/scripts/scaffolder.py +0 -482
- package/skills/delegating/SKILL.md +0 -196
- package/skills/delegating/config.yaml +0 -210
- package/skills/delegating/references/orchestration-protocols.md +0 -41
- package/skills/docker-expert/SKILL.md +0 -409
- package/skills/documenting/CHANGELOG.md +0 -23
- package/skills/documenting/README.md +0 -148
- package/skills/documenting/SKILL.md +0 -113
- package/skills/documenting/examples/example_pattern.md +0 -70
- package/skills/documenting/examples/example_reference.md +0 -70
- package/skills/documenting/examples/example_ssot_analytics.md +0 -64
- package/skills/documenting/examples/example_workflow.md +0 -141
- package/skills/documenting/references/changelog-format.md +0 -97
- package/skills/documenting/references/metadata-schema.md +0 -136
- package/skills/documenting/references/taxonomy.md +0 -81
- package/skills/documenting/references/versioning-rules.md +0 -78
- package/skills/documenting/scripts/bump_version.sh +0 -60
- package/skills/documenting/scripts/changelog/__init__.py +0 -0
- package/skills/documenting/scripts/changelog/add_entry.py +0 -216
- package/skills/documenting/scripts/changelog/bump_release.py +0 -117
- package/skills/documenting/scripts/changelog/init_changelog.py +0 -54
- package/skills/documenting/scripts/changelog/validate_changelog.py +0 -128
- package/skills/documenting/scripts/drift_detector.py +0 -266
- package/skills/documenting/scripts/generate_template.py +0 -311
- package/skills/documenting/scripts/list_by_category.sh +0 -84
- package/skills/documenting/scripts/orchestrator.py +0 -255
- package/skills/documenting/scripts/validate_metadata.py +0 -242
- package/skills/documenting/templates/CHANGELOG.md.template +0 -13
- package/skills/find-skills/SKILL.md +0 -133
- package/skills/gitnexus-exploring/SKILL.md +0 -75
- package/skills/gitnexus-impact-analysis/SKILL.md +0 -94
- package/skills/gitnexus-refactoring/SKILL.md +0 -113
- package/skills/hook-development/SKILL.md +0 -797
- package/skills/hook-development/examples/load-context.sh +0 -55
- package/skills/hook-development/examples/quality-check.js +0 -1168
- package/skills/hook-development/examples/validate-bash.sh +0 -43
- package/skills/hook-development/examples/validate-write.sh +0 -38
- package/skills/hook-development/references/advanced.md +0 -527
- package/skills/hook-development/references/migration.md +0 -369
- package/skills/hook-development/references/patterns.md +0 -412
- package/skills/hook-development/scripts/README.md +0 -164
- package/skills/hook-development/scripts/hook-linter.sh +0 -153
- package/skills/hook-development/scripts/test-hook.sh +0 -252
- package/skills/hook-development/scripts/validate-hook-schema.sh +0 -159
- package/skills/obsidian-cli/SKILL.md +0 -106
- package/skills/orchestrating-agents/SKILL.md +0 -135
- package/skills/orchestrating-agents/config.yaml +0 -45
- package/skills/orchestrating-agents/references/agent-context-integration.md +0 -37
- package/skills/orchestrating-agents/references/examples.md +0 -45
- package/skills/orchestrating-agents/references/handover-protocol.md +0 -31
- package/skills/orchestrating-agents/references/workflows.md +0 -42
- package/skills/orchestrating-agents/scripts/detect_neighbors.py +0 -23
- package/skills/planning/SKILL.md +0 -405
- package/skills/planning/evals/evals.json +0 -19
- package/skills/prompt-improving/README.md +0 -162
- package/skills/prompt-improving/SKILL.md +0 -74
- package/skills/prompt-improving/references/analysis_commands.md +0 -24
- package/skills/prompt-improving/references/chain_of_thought.md +0 -24
- package/skills/prompt-improving/references/mcp_definitions.md +0 -20
- package/skills/prompt-improving/references/multishot.md +0 -23
- package/skills/prompt-improving/references/xml_core.md +0 -60
- package/skills/python-testing/SKILL.md +0 -815
- package/skills/scoping-service-skills/SKILL.md +0 -231
- package/skills/scoping-service-skills/scripts/scope.py +0 -74
- package/skills/senior-backend/SKILL.md +0 -209
- package/skills/senior-backend/references/api_design_patterns.md +0 -103
- package/skills/senior-backend/references/backend_security_practices.md +0 -103
- package/skills/senior-backend/references/database_optimization_guide.md +0 -103
- package/skills/senior-backend/scripts/api_load_tester.py +0 -114
- package/skills/senior-backend/scripts/api_scaffolder.py +0 -114
- package/skills/senior-backend/scripts/database_migration_tool.py +0 -114
- package/skills/senior-data-scientist/SKILL.md +0 -226
- package/skills/senior-data-scientist/references/experiment_design_frameworks.md +0 -80
- package/skills/senior-data-scientist/references/feature_engineering_patterns.md +0 -80
- package/skills/senior-data-scientist/references/statistical_methods_advanced.md +0 -80
- package/skills/senior-data-scientist/scripts/experiment_designer.py +0 -100
- package/skills/senior-data-scientist/scripts/feature_engineering_pipeline.py +0 -100
- package/skills/senior-data-scientist/scripts/model_evaluation_suite.py +0 -100
- package/skills/senior-devops/SKILL.md +0 -209
- package/skills/senior-devops/references/cicd_pipeline_guide.md +0 -103
- package/skills/senior-devops/references/deployment_strategies.md +0 -103
- package/skills/senior-devops/references/infrastructure_as_code.md +0 -103
- package/skills/senior-devops/scripts/deployment_manager.py +0 -114
- package/skills/senior-devops/scripts/pipeline_generator.py +0 -114
- package/skills/senior-devops/scripts/terraform_scaffolder.py +0 -114
- package/skills/senior-security/SKILL.md +0 -209
- package/skills/senior-security/references/cryptography_implementation.md +0 -103
- package/skills/senior-security/references/penetration_testing_guide.md +0 -103
- package/skills/senior-security/references/security_architecture_patterns.md +0 -103
- package/skills/senior-security/scripts/pentest_automator.py +0 -114
- package/skills/senior-security/scripts/security_auditor.py +0 -114
- package/skills/senior-security/scripts/threat_modeler.py +0 -114
- package/skills/skill-creator/LICENSE.txt +0 -202
- package/skills/skill-creator/SKILL.md +0 -479
- package/skills/skill-creator/agents/analyzer.md +0 -274
- package/skills/skill-creator/agents/comparator.md +0 -202
- package/skills/skill-creator/agents/grader.md +0 -223
- package/skills/skill-creator/assets/eval_review.html +0 -146
- package/skills/skill-creator/eval-viewer/generate_review.py +0 -471
- package/skills/skill-creator/eval-viewer/viewer.html +0 -1325
- package/skills/skill-creator/references/schemas.md +0 -430
- package/skills/skill-creator/scripts/__init__.py +0 -0
- package/skills/skill-creator/scripts/aggregate_benchmark.py +0 -401
- package/skills/skill-creator/scripts/generate_report.py +0 -326
- package/skills/skill-creator/scripts/improve_description.py +0 -248
- package/skills/skill-creator/scripts/package_skill.py +0 -136
- package/skills/skill-creator/scripts/quick_validate.py +0 -103
- package/skills/skill-creator/scripts/run_eval.py +0 -310
- package/skills/skill-creator/scripts/run_loop.py +0 -332
- package/skills/skill-creator/scripts/utils.py +0 -47
- package/skills/sync-docs/SKILL.md +0 -286
- package/skills/sync-docs/evals/evals.json +0 -89
- package/skills/sync-docs/references/doc-structure.md +0 -99
- package/skills/sync-docs/references/schema.md +0 -103
- package/skills/sync-docs/scripts/changelog/add_entry.py +0 -216
- package/skills/sync-docs/scripts/context_gatherer.py +0 -240
- package/skills/sync-docs/scripts/doc_structure_analyzer.py +0 -495
- package/skills/sync-docs/scripts/drift_detector.py +0 -563
- package/skills/sync-docs/scripts/validate_doc.py +0 -365
- package/skills/sync-docs/scripts/validate_metadata.py +0 -185
- package/skills/sync-docs-workspace/iteration-1/benchmark.json +0 -293
- package/skills/sync-docs-workspace/iteration-1/benchmark.md +0 -13
- package/skills/sync-docs-workspace/iteration-1/eval-doc-audit/eval_metadata.json +0 -27
- package/skills/sync-docs-workspace/iteration-1/eval-doc-audit/with_skill/outputs/result.md +0 -210
- package/skills/sync-docs-workspace/iteration-1/eval-doc-audit/with_skill/run-1/grading.json +0 -28
- package/skills/sync-docs-workspace/iteration-1/eval-doc-audit/with_skill/run-1/timing.json +0 -1
- package/skills/sync-docs-workspace/iteration-1/eval-doc-audit/without_skill/outputs/result.md +0 -101
- package/skills/sync-docs-workspace/iteration-1/eval-doc-audit/without_skill/run-1/grading.json +0 -28
- package/skills/sync-docs-workspace/iteration-1/eval-doc-audit/without_skill/run-1/timing.json +0 -5
- package/skills/sync-docs-workspace/iteration-1/eval-doc-audit/without_skill/timing.json +0 -5
- package/skills/sync-docs-workspace/iteration-1/eval-fix-mode/eval_metadata.json +0 -27
- package/skills/sync-docs-workspace/iteration-1/eval-fix-mode/with_skill/outputs/result.md +0 -198
- package/skills/sync-docs-workspace/iteration-1/eval-fix-mode/with_skill/run-1/grading.json +0 -28
- package/skills/sync-docs-workspace/iteration-1/eval-fix-mode/with_skill/run-1/timing.json +0 -1
- package/skills/sync-docs-workspace/iteration-1/eval-fix-mode/without_skill/outputs/result.md +0 -94
- package/skills/sync-docs-workspace/iteration-1/eval-fix-mode/without_skill/run-1/grading.json +0 -28
- package/skills/sync-docs-workspace/iteration-1/eval-fix-mode/without_skill/run-1/timing.json +0 -1
- package/skills/sync-docs-workspace/iteration-1/eval-sprint-closeout/eval_metadata.json +0 -27
- package/skills/sync-docs-workspace/iteration-1/eval-sprint-closeout/with_skill/outputs/result.md +0 -237
- package/skills/sync-docs-workspace/iteration-1/eval-sprint-closeout/with_skill/run-1/grading.json +0 -28
- package/skills/sync-docs-workspace/iteration-1/eval-sprint-closeout/with_skill/run-1/timing.json +0 -1
- package/skills/sync-docs-workspace/iteration-1/eval-sprint-closeout/without_skill/outputs/result.md +0 -134
- package/skills/sync-docs-workspace/iteration-1/eval-sprint-closeout/without_skill/run-1/grading.json +0 -28
- package/skills/sync-docs-workspace/iteration-1/eval-sprint-closeout/without_skill/run-1/timing.json +0 -1
- package/skills/sync-docs-workspace/iteration-2/benchmark.json +0 -297
- package/skills/sync-docs-workspace/iteration-2/benchmark.md +0 -13
- package/skills/sync-docs-workspace/iteration-2/eval-doc-audit/eval_metadata.json +0 -27
- package/skills/sync-docs-workspace/iteration-2/eval-doc-audit/with_skill/outputs/result.md +0 -137
- package/skills/sync-docs-workspace/iteration-2/eval-doc-audit/with_skill/run-1/grading.json +0 -92
- package/skills/sync-docs-workspace/iteration-2/eval-doc-audit/with_skill/run-1/timing.json +0 -1
- package/skills/sync-docs-workspace/iteration-2/eval-doc-audit/without_skill/outputs/result.md +0 -134
- package/skills/sync-docs-workspace/iteration-2/eval-doc-audit/without_skill/run-1/grading.json +0 -86
- package/skills/sync-docs-workspace/iteration-2/eval-doc-audit/without_skill/run-1/timing.json +0 -1
- package/skills/sync-docs-workspace/iteration-2/eval-fix-mode/eval_metadata.json +0 -27
- package/skills/sync-docs-workspace/iteration-2/eval-fix-mode/with_skill/outputs/result.md +0 -193
- package/skills/sync-docs-workspace/iteration-2/eval-fix-mode/with_skill/run-1/grading.json +0 -72
- package/skills/sync-docs-workspace/iteration-2/eval-fix-mode/with_skill/run-1/timing.json +0 -1
- package/skills/sync-docs-workspace/iteration-2/eval-fix-mode/without_skill/outputs/result.md +0 -211
- package/skills/sync-docs-workspace/iteration-2/eval-fix-mode/without_skill/run-1/grading.json +0 -91
- package/skills/sync-docs-workspace/iteration-2/eval-fix-mode/without_skill/run-1/timing.json +0 -5
- package/skills/sync-docs-workspace/iteration-2/eval-sprint-closeout/eval_metadata.json +0 -27
- package/skills/sync-docs-workspace/iteration-2/eval-sprint-closeout/with_skill/outputs/result.md +0 -182
- package/skills/sync-docs-workspace/iteration-2/eval-sprint-closeout/with_skill/run-1/grading.json +0 -95
- package/skills/sync-docs-workspace/iteration-2/eval-sprint-closeout/with_skill/run-1/timing.json +0 -1
- package/skills/sync-docs-workspace/iteration-2/eval-sprint-closeout/without_skill/outputs/result.md +0 -222
- package/skills/sync-docs-workspace/iteration-2/eval-sprint-closeout/without_skill/run-1/grading.json +0 -88
- package/skills/sync-docs-workspace/iteration-2/eval-sprint-closeout/without_skill/run-1/timing.json +0 -5
- package/skills/sync-docs-workspace/iteration-3/benchmark.json +0 -298
- package/skills/sync-docs-workspace/iteration-3/benchmark.md +0 -13
- package/skills/sync-docs-workspace/iteration-3/eval-doc-audit/eval_metadata.json +0 -27
- package/skills/sync-docs-workspace/iteration-3/eval-doc-audit/with_skill/outputs/result.md +0 -125
- package/skills/sync-docs-workspace/iteration-3/eval-doc-audit/with_skill/run-1/grading.json +0 -97
- package/skills/sync-docs-workspace/iteration-3/eval-doc-audit/with_skill/run-1/timing.json +0 -5
- package/skills/sync-docs-workspace/iteration-3/eval-doc-audit/without_skill/outputs/result.md +0 -144
- package/skills/sync-docs-workspace/iteration-3/eval-doc-audit/without_skill/run-1/grading.json +0 -78
- package/skills/sync-docs-workspace/iteration-3/eval-doc-audit/without_skill/run-1/timing.json +0 -5
- package/skills/sync-docs-workspace/iteration-3/eval-fix-mode/eval_metadata.json +0 -27
- package/skills/sync-docs-workspace/iteration-3/eval-fix-mode/with_skill/outputs/result.md +0 -104
- package/skills/sync-docs-workspace/iteration-3/eval-fix-mode/with_skill/run-1/grading.json +0 -91
- package/skills/sync-docs-workspace/iteration-3/eval-fix-mode/with_skill/run-1/timing.json +0 -5
- package/skills/sync-docs-workspace/iteration-3/eval-fix-mode/without_skill/outputs/result.md +0 -79
- package/skills/sync-docs-workspace/iteration-3/eval-fix-mode/without_skill/run-1/grading.json +0 -82
- package/skills/sync-docs-workspace/iteration-3/eval-fix-mode/without_skill/run-1/timing.json +0 -5
- package/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/eval_metadata.json +0 -27
- package/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/with_skill/outputs/phase1_context.json +0 -302
- package/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/with_skill/outputs/phase2_drift.txt +0 -33
- package/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/with_skill/outputs/phase3_analysis.json +0 -114
- package/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/with_skill/outputs/phase4_fix.txt +0 -118
- package/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/with_skill/outputs/phase5_validate.txt +0 -38
- package/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/with_skill/outputs/result.md +0 -158
- package/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/with_skill/run-1/grading.json +0 -95
- package/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/with_skill/run-1/timing.json +0 -5
- package/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/without_skill/outputs/result.md +0 -71
- package/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/without_skill/run-1/grading.json +0 -90
- package/skills/sync-docs-workspace/iteration-3/eval-sprint-closeout/without_skill/run-1/timing.json +0 -5
- package/skills/test-planning/SKILL.md +0 -465
- package/skills/test-planning/evals/evals.json +0 -23
- package/skills/updating-service-skills/SKILL.md +0 -136
- package/skills/updating-service-skills/scripts/drift_detector.py +0 -222
- package/skills/using-quality-gates/SKILL.md +0 -254
- package/skills/using-serena-lsp/README.md +0 -8
- package/skills/using-serena-lsp/REFERENCE.md +0 -194
- package/skills/using-serena-lsp/SKILL.md +0 -82
- package/skills/using-service-skills/SKILL.md +0 -108
- package/skills/using-service-skills/scripts/cataloger.py +0 -74
- package/skills/using-service-skills/scripts/skill_activator.py +0 -152
- package/skills/using-service-skills/scripts/test_skill_activator.py +0 -58
- package/skills/using-tdd/SKILL.md +0 -410
- package/skills/using-xtrm/SKILL.md +0 -127
- package/skills/xt-debugging/SKILL.md +0 -149
- package/skills/xt-end/SKILL.md +0 -297
- package/skills/xt-merge/SKILL.md +0 -313
- /package/{config → .xtrm/config}/.env.example +0 -0
- /package/{config/mcp_servers_optional.json → .xtrm/config/claude.mcp.optional.json} +0 -0
- /package/{hooks → .xtrm/config}/hooks.json +0 -0
- /package/{config → .xtrm/config}/pi/auth.json.template +0 -0
- /package/{config → .xtrm/config}/pi/extensions/auto-session-name/index.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/auto-session-name/package.json +0 -0
- /package/{config → .xtrm/config}/pi/extensions/auto-update/index.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/auto-update/package.json +0 -0
- /package/{config → .xtrm/config}/pi/extensions/beads/package.json +0 -0
- /package/{config → .xtrm/config}/pi/extensions/compact-header/index.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/compact-header/package.json +0 -0
- /package/{config → .xtrm/config}/pi/extensions/core/adapter.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/core/guard-rules.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/core/lib.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/core/logger.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/core/package.json +0 -0
- /package/{config → .xtrm/config}/pi/extensions/core/runner.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/core/session-state.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/custom-footer/package.json +0 -0
- /package/{config → .xtrm/config}/pi/extensions/custom-provider-qwen-cli/index.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/custom-provider-qwen-cli/package.json +0 -0
- /package/{config → .xtrm/config}/pi/extensions/git-checkpoint/index.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/git-checkpoint/package.json +0 -0
- /package/{config → .xtrm/config}/pi/extensions/lsp-bootstrap/index.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/lsp-bootstrap/package.json +0 -0
- /package/{config → .xtrm/config}/pi/extensions/pi-serena-compact/index.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/pi-serena-compact/package.json +0 -0
- /package/{config → .xtrm/config}/pi/extensions/quality-gates/index.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/quality-gates/package.json +0 -0
- /package/{config → .xtrm/config}/pi/extensions/service-skills/index.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/service-skills/package.json +0 -0
- /package/{config → .xtrm/config}/pi/extensions/session-flow/index.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/session-flow/package.json +0 -0
- /package/{config → .xtrm/config}/pi/extensions/xtrm-loader/index.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/xtrm-loader/package.json +0 -0
- /package/{config → .xtrm/config}/pi/extensions/xtrm-ui/format.ts +0 -0
- /package/{config → .xtrm/config}/pi/extensions/xtrm-ui/package.json +0 -0
- /package/{config → .xtrm/config}/pi/extensions/xtrm-ui/themes/pidex-dark.json +0 -0
- /package/{config → .xtrm/config}/pi/extensions/xtrm-ui/themes/pidex-light.json +0 -0
- /package/{config → .xtrm/config}/pi/models.json.template +0 -0
- /package/{config → .xtrm/config}/pi/pi-worktrees-settings.json +0 -0
- /package/{config → .xtrm/config}/pi/settings.json.template +0 -0
- /package/{hooks → .xtrm/hooks}/beads-claim-sync.mjs +0 -0
- /package/{hooks → .xtrm/hooks}/beads-compact-restore.mjs +0 -0
- /package/{hooks → .xtrm/hooks}/beads-compact-save.mjs +0 -0
- /package/{hooks → .xtrm/hooks}/beads-edit-gate.mjs +0 -0
- /package/{hooks → .xtrm/hooks}/beads-gate-core.mjs +0 -0
- /package/{hooks → .xtrm/hooks}/beads-gate-messages.mjs +0 -0
- /package/{hooks → .xtrm/hooks}/beads-gate-utils.mjs +0 -0
- /package/{hooks → .xtrm/hooks}/beads-stop-gate.mjs +0 -0
- /package/{hooks → .xtrm/hooks}/gitnexus/gitnexus-hook.cjs +0 -0
- /package/{hooks → .xtrm/hooks}/quality-check.cjs +0 -0
- /package/{hooks → .xtrm/hooks}/quality-check.py +0 -0
- /package/{hooks → .xtrm/hooks}/worktree-boundary.mjs +0 -0
- /package/{hooks → .xtrm/hooks}/xtrm-logger.mjs +0 -0
- /package/{hooks → .xtrm/hooks}/xtrm-session-logger.mjs +0 -0
- /package/{hooks → .xtrm/hooks}/xtrm-tool-logger.mjs +0 -0
|
@@ -1,332 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""Run the eval + improve loop until all pass or max iterations reached.
|
|
3
|
-
|
|
4
|
-
Combines run_eval.py and improve_description.py in a loop, tracking history
|
|
5
|
-
and returning the best description found. Supports train/test split to prevent
|
|
6
|
-
overfitting.
|
|
7
|
-
"""
|
|
8
|
-
|
|
9
|
-
import argparse
|
|
10
|
-
import json
|
|
11
|
-
import random
|
|
12
|
-
import sys
|
|
13
|
-
import tempfile
|
|
14
|
-
import time
|
|
15
|
-
import webbrowser
|
|
16
|
-
from pathlib import Path
|
|
17
|
-
|
|
18
|
-
import anthropic
|
|
19
|
-
|
|
20
|
-
from scripts.generate_report import generate_html
|
|
21
|
-
from scripts.improve_description import improve_description
|
|
22
|
-
from scripts.run_eval import find_project_root, run_eval
|
|
23
|
-
from scripts.utils import parse_skill_md
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
def split_eval_set(eval_set: list[dict], holdout: float, seed: int = 42) -> tuple[list[dict], list[dict]]:
|
|
27
|
-
"""Split eval set into train and test sets, stratified by should_trigger."""
|
|
28
|
-
random.seed(seed)
|
|
29
|
-
|
|
30
|
-
# Separate by should_trigger
|
|
31
|
-
trigger = [e for e in eval_set if e["should_trigger"]]
|
|
32
|
-
no_trigger = [e for e in eval_set if not e["should_trigger"]]
|
|
33
|
-
|
|
34
|
-
# Shuffle each group
|
|
35
|
-
random.shuffle(trigger)
|
|
36
|
-
random.shuffle(no_trigger)
|
|
37
|
-
|
|
38
|
-
# Calculate split points
|
|
39
|
-
n_trigger_test = max(1, int(len(trigger) * holdout))
|
|
40
|
-
n_no_trigger_test = max(1, int(len(no_trigger) * holdout))
|
|
41
|
-
|
|
42
|
-
# Split
|
|
43
|
-
test_set = trigger[:n_trigger_test] + no_trigger[:n_no_trigger_test]
|
|
44
|
-
train_set = trigger[n_trigger_test:] + no_trigger[n_no_trigger_test:]
|
|
45
|
-
|
|
46
|
-
return train_set, test_set
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
def run_loop(
|
|
50
|
-
eval_set: list[dict],
|
|
51
|
-
skill_path: Path,
|
|
52
|
-
description_override: str | None,
|
|
53
|
-
num_workers: int,
|
|
54
|
-
timeout: int,
|
|
55
|
-
max_iterations: int,
|
|
56
|
-
runs_per_query: int,
|
|
57
|
-
trigger_threshold: float,
|
|
58
|
-
holdout: float,
|
|
59
|
-
model: str,
|
|
60
|
-
verbose: bool,
|
|
61
|
-
live_report_path: Path | None = None,
|
|
62
|
-
log_dir: Path | None = None,
|
|
63
|
-
) -> dict:
|
|
64
|
-
"""Run the eval + improvement loop."""
|
|
65
|
-
project_root = find_project_root()
|
|
66
|
-
name, original_description, content = parse_skill_md(skill_path)
|
|
67
|
-
current_description = description_override or original_description
|
|
68
|
-
|
|
69
|
-
# Split into train/test if holdout > 0
|
|
70
|
-
if holdout > 0:
|
|
71
|
-
train_set, test_set = split_eval_set(eval_set, holdout)
|
|
72
|
-
if verbose:
|
|
73
|
-
print(f"Split: {len(train_set)} train, {len(test_set)} test (holdout={holdout})", file=sys.stderr)
|
|
74
|
-
else:
|
|
75
|
-
train_set = eval_set
|
|
76
|
-
test_set = []
|
|
77
|
-
|
|
78
|
-
client = anthropic.Anthropic()
|
|
79
|
-
history = []
|
|
80
|
-
exit_reason = "unknown"
|
|
81
|
-
|
|
82
|
-
for iteration in range(1, max_iterations + 1):
|
|
83
|
-
if verbose:
|
|
84
|
-
print(f"\n{'='*60}", file=sys.stderr)
|
|
85
|
-
print(f"Iteration {iteration}/{max_iterations}", file=sys.stderr)
|
|
86
|
-
print(f"Description: {current_description}", file=sys.stderr)
|
|
87
|
-
print(f"{'='*60}", file=sys.stderr)
|
|
88
|
-
|
|
89
|
-
# Evaluate train + test together in one batch for parallelism
|
|
90
|
-
all_queries = train_set + test_set
|
|
91
|
-
t0 = time.time()
|
|
92
|
-
all_results = run_eval(
|
|
93
|
-
eval_set=all_queries,
|
|
94
|
-
skill_name=name,
|
|
95
|
-
description=current_description,
|
|
96
|
-
num_workers=num_workers,
|
|
97
|
-
timeout=timeout,
|
|
98
|
-
project_root=project_root,
|
|
99
|
-
runs_per_query=runs_per_query,
|
|
100
|
-
trigger_threshold=trigger_threshold,
|
|
101
|
-
model=model,
|
|
102
|
-
)
|
|
103
|
-
eval_elapsed = time.time() - t0
|
|
104
|
-
|
|
105
|
-
# Split results back into train/test by matching queries
|
|
106
|
-
train_queries_set = {q["query"] for q in train_set}
|
|
107
|
-
train_result_list = [r for r in all_results["results"] if r["query"] in train_queries_set]
|
|
108
|
-
test_result_list = [r for r in all_results["results"] if r["query"] not in train_queries_set]
|
|
109
|
-
|
|
110
|
-
train_passed = sum(1 for r in train_result_list if r["pass"])
|
|
111
|
-
train_total = len(train_result_list)
|
|
112
|
-
train_summary = {"passed": train_passed, "failed": train_total - train_passed, "total": train_total}
|
|
113
|
-
train_results = {"results": train_result_list, "summary": train_summary}
|
|
114
|
-
|
|
115
|
-
if test_set:
|
|
116
|
-
test_passed = sum(1 for r in test_result_list if r["pass"])
|
|
117
|
-
test_total = len(test_result_list)
|
|
118
|
-
test_summary = {"passed": test_passed, "failed": test_total - test_passed, "total": test_total}
|
|
119
|
-
test_results = {"results": test_result_list, "summary": test_summary}
|
|
120
|
-
else:
|
|
121
|
-
test_results = None
|
|
122
|
-
test_summary = None
|
|
123
|
-
|
|
124
|
-
history.append({
|
|
125
|
-
"iteration": iteration,
|
|
126
|
-
"description": current_description,
|
|
127
|
-
"train_passed": train_summary["passed"],
|
|
128
|
-
"train_failed": train_summary["failed"],
|
|
129
|
-
"train_total": train_summary["total"],
|
|
130
|
-
"train_results": train_results["results"],
|
|
131
|
-
"test_passed": test_summary["passed"] if test_summary else None,
|
|
132
|
-
"test_failed": test_summary["failed"] if test_summary else None,
|
|
133
|
-
"test_total": test_summary["total"] if test_summary else None,
|
|
134
|
-
"test_results": test_results["results"] if test_results else None,
|
|
135
|
-
# For backward compat with report generator
|
|
136
|
-
"passed": train_summary["passed"],
|
|
137
|
-
"failed": train_summary["failed"],
|
|
138
|
-
"total": train_summary["total"],
|
|
139
|
-
"results": train_results["results"],
|
|
140
|
-
})
|
|
141
|
-
|
|
142
|
-
# Write live report if path provided
|
|
143
|
-
if live_report_path:
|
|
144
|
-
partial_output = {
|
|
145
|
-
"original_description": original_description,
|
|
146
|
-
"best_description": current_description,
|
|
147
|
-
"best_score": "in progress",
|
|
148
|
-
"iterations_run": len(history),
|
|
149
|
-
"holdout": holdout,
|
|
150
|
-
"train_size": len(train_set),
|
|
151
|
-
"test_size": len(test_set),
|
|
152
|
-
"history": history,
|
|
153
|
-
}
|
|
154
|
-
live_report_path.write_text(generate_html(partial_output, auto_refresh=True, skill_name=name))
|
|
155
|
-
|
|
156
|
-
if verbose:
|
|
157
|
-
def print_eval_stats(label, results, elapsed):
|
|
158
|
-
pos = [r for r in results if r["should_trigger"]]
|
|
159
|
-
neg = [r for r in results if not r["should_trigger"]]
|
|
160
|
-
tp = sum(r["triggers"] for r in pos)
|
|
161
|
-
pos_runs = sum(r["runs"] for r in pos)
|
|
162
|
-
fn = pos_runs - tp
|
|
163
|
-
fp = sum(r["triggers"] for r in neg)
|
|
164
|
-
neg_runs = sum(r["runs"] for r in neg)
|
|
165
|
-
tn = neg_runs - fp
|
|
166
|
-
total = tp + tn + fp + fn
|
|
167
|
-
precision = tp / (tp + fp) if (tp + fp) > 0 else 1.0
|
|
168
|
-
recall = tp / (tp + fn) if (tp + fn) > 0 else 1.0
|
|
169
|
-
accuracy = (tp + tn) / total if total > 0 else 0.0
|
|
170
|
-
print(f"{label}: {tp+tn}/{total} correct, precision={precision:.0%} recall={recall:.0%} accuracy={accuracy:.0%} ({elapsed:.1f}s)", file=sys.stderr)
|
|
171
|
-
for r in results:
|
|
172
|
-
status = "PASS" if r["pass"] else "FAIL"
|
|
173
|
-
rate_str = f"{r['triggers']}/{r['runs']}"
|
|
174
|
-
print(f" [{status}] rate={rate_str} expected={r['should_trigger']}: {r['query'][:60]}", file=sys.stderr)
|
|
175
|
-
|
|
176
|
-
print_eval_stats("Train", train_results["results"], eval_elapsed)
|
|
177
|
-
if test_summary:
|
|
178
|
-
print_eval_stats("Test ", test_results["results"], 0)
|
|
179
|
-
|
|
180
|
-
if train_summary["failed"] == 0:
|
|
181
|
-
exit_reason = f"all_passed (iteration {iteration})"
|
|
182
|
-
if verbose:
|
|
183
|
-
print(f"\nAll train queries passed on iteration {iteration}!", file=sys.stderr)
|
|
184
|
-
break
|
|
185
|
-
|
|
186
|
-
if iteration == max_iterations:
|
|
187
|
-
exit_reason = f"max_iterations ({max_iterations})"
|
|
188
|
-
if verbose:
|
|
189
|
-
print(f"\nMax iterations reached ({max_iterations}).", file=sys.stderr)
|
|
190
|
-
break
|
|
191
|
-
|
|
192
|
-
# Improve the description based on train results
|
|
193
|
-
if verbose:
|
|
194
|
-
print(f"\nImproving description...", file=sys.stderr)
|
|
195
|
-
|
|
196
|
-
t0 = time.time()
|
|
197
|
-
# Strip test scores from history so improvement model can't see them
|
|
198
|
-
blinded_history = [
|
|
199
|
-
{k: v for k, v in h.items() if not k.startswith("test_")}
|
|
200
|
-
for h in history
|
|
201
|
-
]
|
|
202
|
-
new_description = improve_description(
|
|
203
|
-
client=client,
|
|
204
|
-
skill_name=name,
|
|
205
|
-
skill_content=content,
|
|
206
|
-
current_description=current_description,
|
|
207
|
-
eval_results=train_results,
|
|
208
|
-
history=blinded_history,
|
|
209
|
-
model=model,
|
|
210
|
-
log_dir=log_dir,
|
|
211
|
-
iteration=iteration,
|
|
212
|
-
)
|
|
213
|
-
improve_elapsed = time.time() - t0
|
|
214
|
-
|
|
215
|
-
if verbose:
|
|
216
|
-
print(f"Proposed ({improve_elapsed:.1f}s): {new_description}", file=sys.stderr)
|
|
217
|
-
|
|
218
|
-
current_description = new_description
|
|
219
|
-
|
|
220
|
-
# Find the best iteration by TEST score (or train if no test set)
|
|
221
|
-
if test_set:
|
|
222
|
-
best = max(history, key=lambda h: h["test_passed"] or 0)
|
|
223
|
-
best_score = f"{best['test_passed']}/{best['test_total']}"
|
|
224
|
-
else:
|
|
225
|
-
best = max(history, key=lambda h: h["train_passed"])
|
|
226
|
-
best_score = f"{best['train_passed']}/{best['train_total']}"
|
|
227
|
-
|
|
228
|
-
if verbose:
|
|
229
|
-
print(f"\nExit reason: {exit_reason}", file=sys.stderr)
|
|
230
|
-
print(f"Best score: {best_score} (iteration {best['iteration']})", file=sys.stderr)
|
|
231
|
-
|
|
232
|
-
return {
|
|
233
|
-
"exit_reason": exit_reason,
|
|
234
|
-
"original_description": original_description,
|
|
235
|
-
"best_description": best["description"],
|
|
236
|
-
"best_score": best_score,
|
|
237
|
-
"best_train_score": f"{best['train_passed']}/{best['train_total']}",
|
|
238
|
-
"best_test_score": f"{best['test_passed']}/{best['test_total']}" if test_set else None,
|
|
239
|
-
"final_description": current_description,
|
|
240
|
-
"iterations_run": len(history),
|
|
241
|
-
"holdout": holdout,
|
|
242
|
-
"train_size": len(train_set),
|
|
243
|
-
"test_size": len(test_set),
|
|
244
|
-
"history": history,
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
def main():
|
|
249
|
-
parser = argparse.ArgumentParser(description="Run eval + improve loop")
|
|
250
|
-
parser.add_argument("--eval-set", required=True, help="Path to eval set JSON file")
|
|
251
|
-
parser.add_argument("--skill-path", required=True, help="Path to skill directory")
|
|
252
|
-
parser.add_argument("--description", default=None, help="Override starting description")
|
|
253
|
-
parser.add_argument("--num-workers", type=int, default=10, help="Number of parallel workers")
|
|
254
|
-
parser.add_argument("--timeout", type=int, default=30, help="Timeout per query in seconds")
|
|
255
|
-
parser.add_argument("--max-iterations", type=int, default=5, help="Max improvement iterations")
|
|
256
|
-
parser.add_argument("--runs-per-query", type=int, default=3, help="Number of runs per query")
|
|
257
|
-
parser.add_argument("--trigger-threshold", type=float, default=0.5, help="Trigger rate threshold")
|
|
258
|
-
parser.add_argument("--holdout", type=float, default=0.4, help="Fraction of eval set to hold out for testing (0 to disable)")
|
|
259
|
-
parser.add_argument("--model", required=True, help="Model for improvement")
|
|
260
|
-
parser.add_argument("--verbose", action="store_true", help="Print progress to stderr")
|
|
261
|
-
parser.add_argument("--report", default="auto", help="Generate HTML report at this path (default: 'auto' for temp file, 'none' to disable)")
|
|
262
|
-
parser.add_argument("--results-dir", default=None, help="Save all outputs (results.json, report.html, log.txt) to a timestamped subdirectory here")
|
|
263
|
-
args = parser.parse_args()
|
|
264
|
-
|
|
265
|
-
eval_set = json.loads(Path(args.eval_set).read_text())
|
|
266
|
-
skill_path = Path(args.skill_path)
|
|
267
|
-
|
|
268
|
-
if not (skill_path / "SKILL.md").exists():
|
|
269
|
-
print(f"Error: No SKILL.md found at {skill_path}", file=sys.stderr)
|
|
270
|
-
sys.exit(1)
|
|
271
|
-
|
|
272
|
-
name, _, _ = parse_skill_md(skill_path)
|
|
273
|
-
|
|
274
|
-
# Set up live report path
|
|
275
|
-
if args.report != "none":
|
|
276
|
-
if args.report == "auto":
|
|
277
|
-
timestamp = time.strftime("%Y%m%d_%H%M%S")
|
|
278
|
-
live_report_path = Path(tempfile.gettempdir()) / f"skill_description_report_{skill_path.name}_{timestamp}.html"
|
|
279
|
-
else:
|
|
280
|
-
live_report_path = Path(args.report)
|
|
281
|
-
# Open the report immediately so the user can watch
|
|
282
|
-
live_report_path.write_text("<html><body><h1>Starting optimization loop...</h1><meta http-equiv='refresh' content='5'></body></html>")
|
|
283
|
-
webbrowser.open(str(live_report_path))
|
|
284
|
-
else:
|
|
285
|
-
live_report_path = None
|
|
286
|
-
|
|
287
|
-
# Determine output directory (create before run_loop so logs can be written)
|
|
288
|
-
if args.results_dir:
|
|
289
|
-
timestamp = time.strftime("%Y-%m-%d_%H%M%S")
|
|
290
|
-
results_dir = Path(args.results_dir) / timestamp
|
|
291
|
-
results_dir.mkdir(parents=True, exist_ok=True)
|
|
292
|
-
else:
|
|
293
|
-
results_dir = None
|
|
294
|
-
|
|
295
|
-
log_dir = results_dir / "logs" if results_dir else None
|
|
296
|
-
|
|
297
|
-
output = run_loop(
|
|
298
|
-
eval_set=eval_set,
|
|
299
|
-
skill_path=skill_path,
|
|
300
|
-
description_override=args.description,
|
|
301
|
-
num_workers=args.num_workers,
|
|
302
|
-
timeout=args.timeout,
|
|
303
|
-
max_iterations=args.max_iterations,
|
|
304
|
-
runs_per_query=args.runs_per_query,
|
|
305
|
-
trigger_threshold=args.trigger_threshold,
|
|
306
|
-
holdout=args.holdout,
|
|
307
|
-
model=args.model,
|
|
308
|
-
verbose=args.verbose,
|
|
309
|
-
live_report_path=live_report_path,
|
|
310
|
-
log_dir=log_dir,
|
|
311
|
-
)
|
|
312
|
-
|
|
313
|
-
# Save JSON output
|
|
314
|
-
json_output = json.dumps(output, indent=2)
|
|
315
|
-
print(json_output)
|
|
316
|
-
if results_dir:
|
|
317
|
-
(results_dir / "results.json").write_text(json_output)
|
|
318
|
-
|
|
319
|
-
# Write final HTML report (without auto-refresh)
|
|
320
|
-
if live_report_path:
|
|
321
|
-
live_report_path.write_text(generate_html(output, auto_refresh=False, skill_name=name))
|
|
322
|
-
print(f"\nReport: {live_report_path}", file=sys.stderr)
|
|
323
|
-
|
|
324
|
-
if results_dir and live_report_path:
|
|
325
|
-
(results_dir / "report.html").write_text(generate_html(output, auto_refresh=False, skill_name=name))
|
|
326
|
-
|
|
327
|
-
if results_dir:
|
|
328
|
-
print(f"Results saved to: {results_dir}", file=sys.stderr)
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
if __name__ == "__main__":
|
|
332
|
-
main()
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"""Shared utilities for skill-creator scripts."""
|
|
2
|
-
|
|
3
|
-
from pathlib import Path
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
def parse_skill_md(skill_path: Path) -> tuple[str, str, str]:
|
|
8
|
-
"""Parse a SKILL.md file, returning (name, description, full_content)."""
|
|
9
|
-
content = (skill_path / "SKILL.md").read_text()
|
|
10
|
-
lines = content.split("\n")
|
|
11
|
-
|
|
12
|
-
if lines[0].strip() != "---":
|
|
13
|
-
raise ValueError("SKILL.md missing frontmatter (no opening ---)")
|
|
14
|
-
|
|
15
|
-
end_idx = None
|
|
16
|
-
for i, line in enumerate(lines[1:], start=1):
|
|
17
|
-
if line.strip() == "---":
|
|
18
|
-
end_idx = i
|
|
19
|
-
break
|
|
20
|
-
|
|
21
|
-
if end_idx is None:
|
|
22
|
-
raise ValueError("SKILL.md missing frontmatter (no closing ---)")
|
|
23
|
-
|
|
24
|
-
name = ""
|
|
25
|
-
description = ""
|
|
26
|
-
frontmatter_lines = lines[1:end_idx]
|
|
27
|
-
i = 0
|
|
28
|
-
while i < len(frontmatter_lines):
|
|
29
|
-
line = frontmatter_lines[i]
|
|
30
|
-
if line.startswith("name:"):
|
|
31
|
-
name = line[len("name:"):].strip().strip('"').strip("'")
|
|
32
|
-
elif line.startswith("description:"):
|
|
33
|
-
value = line[len("description:"):].strip()
|
|
34
|
-
# Handle YAML multiline indicators (>, |, >-, |-)
|
|
35
|
-
if value in (">", "|", ">-", "|-"):
|
|
36
|
-
continuation_lines: list[str] = []
|
|
37
|
-
i += 1
|
|
38
|
-
while i < len(frontmatter_lines) and (frontmatter_lines[i].startswith(" ") or frontmatter_lines[i].startswith("\t")):
|
|
39
|
-
continuation_lines.append(frontmatter_lines[i].strip())
|
|
40
|
-
i += 1
|
|
41
|
-
description = " ".join(continuation_lines)
|
|
42
|
-
continue
|
|
43
|
-
else:
|
|
44
|
-
description = value.strip('"').strip("'")
|
|
45
|
-
i += 1
|
|
46
|
-
|
|
47
|
-
return name, description, content
|
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: sync-docs
|
|
3
|
-
description: >-
|
|
4
|
-
Doc audit and structural sync for xtrm projects. Use whenever the README
|
|
5
|
-
feels too long, docs are out of sync after a sprint, the CHANGELOG is behind,
|
|
6
|
-
or the user asks to "sync docs", "doc audit", "split readme", "check docs
|
|
7
|
-
health", or "detect drift". Prefer the xtrm docs command suite (`xtrm docs
|
|
8
|
-
list`, `xtrm docs show`, `xtrm docs cross-check`) for operator-facing
|
|
9
|
-
inspection, then use docs-only drift detection on README.md, CHANGELOG.md,
|
|
10
|
-
and docs/ plus the Python analyzers as validation/backstop tools.
|
|
11
|
-
gemini-command: sync-docs
|
|
12
|
-
version: 1.3.0
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
# sync-docs
|
|
16
|
-
|
|
17
|
-
Keeps project documentation in sync with code reality.
|
|
18
|
-
|
|
19
|
-
## Overview
|
|
20
|
-
|
|
21
|
-
```
|
|
22
|
-
Phase 1: Gather context — what changed recently?
|
|
23
|
-
Phase 2: Inspect with xtrm — what does the docs suite already report?
|
|
24
|
-
Phase 3: Detect docs drift — which docs/ files are stale?
|
|
25
|
-
Phase 4: Analyze structure — what belongs outside README?
|
|
26
|
-
Phase 5: Plan + execute — fix docs and changelog
|
|
27
|
-
Phase 6: Validate — schema-check all docs/
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
**Preferred workflow:** use the `xtrm docs` command suite first for human/operator-facing inspection, then use the Python scripts for drift validation, structure analysis, metadata checks, and sync checkpoints.
|
|
31
|
-
|
|
32
|
-
**Audit vs Execute mode:** If the user asked for an audit/report/check-only task, stop after Phase 4. Only run fixes when the user explicitly asks for changes.
|
|
33
|
-
|
|
34
|
-
---
|
|
35
|
-
|
|
36
|
-
## Phase 1: Gather Context
|
|
37
|
-
|
|
38
|
-
Start with the user-facing docs suite so the agent sees the same command surfaces users do:
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
xtrm docs list
|
|
42
|
-
xtrm docs list --json
|
|
43
|
-
xtrm docs show --json
|
|
44
|
-
xtrm docs cross-check --json --days 30
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Use these commands for:
|
|
48
|
-
- `xtrm docs list` — inventory docs files, paths, titles, types, and cache-backed scans
|
|
49
|
-
- `xtrm docs show --json` — inspect frontmatter for README, CHANGELOG, and `docs/*.md`
|
|
50
|
-
- `xtrm docs cross-check --json` — gather stale-doc, coverage-gap, and open-issue-ref signals
|
|
51
|
-
|
|
52
|
-
Then gather deeper repository context if needed:
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
# Global install
|
|
56
|
-
python3 "$HOME/.agents/skills/sync-docs/scripts/context_gatherer.py" [--since=30]
|
|
57
|
-
|
|
58
|
-
# From repository
|
|
59
|
-
python3 "skills/sync-docs/scripts/context_gatherer.py" [--since=30]
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Outputs JSON with:
|
|
63
|
-
- recently closed bd issues
|
|
64
|
-
- merged PRs from git history
|
|
65
|
-
- recent commits
|
|
66
|
-
- docs drift report from `sync-docs/scripts/drift_detector.py`
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
## Phase 2: Inspect with `xtrm docs`
|
|
71
|
-
|
|
72
|
-
Treat the CLI docs suite as the primary operator workflow:
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
xtrm docs --help
|
|
76
|
-
xtrm docs list --json
|
|
77
|
-
xtrm docs show --json
|
|
78
|
-
xtrm docs cross-check --json --days 30
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
Use it to answer:
|
|
82
|
-
- what docs currently exist?
|
|
83
|
-
- which docs have missing or outdated metadata?
|
|
84
|
-
- are there coverage gaps between recent work and docs?
|
|
85
|
-
- do docs reference open issues?
|
|
86
|
-
|
|
87
|
-
If the xtrm docs suite already isolates the problem clearly, proceed directly to fixes. If you need machine-level drift validation for `docs/*.md`, continue to the Python drift detector.
|
|
88
|
-
|
|
89
|
-
---
|
|
90
|
-
|
|
91
|
-
## Phase 3: Detect docs/ Drift
|
|
92
|
-
|
|
93
|
-
Use the Python detector as the authoritative drift/backstop check for tracked `docs/*.md` pages:
|
|
94
|
-
|
|
95
|
-
```bash
|
|
96
|
-
python3 "skills/sync-docs/scripts/drift_detector.py" scan --since 30
|
|
97
|
-
# optional JSON:
|
|
98
|
-
python3 "skills/sync-docs/scripts/drift_detector.py" scan --since 30 --json
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
A docs file is stale when:
|
|
102
|
-
1. It declares `source_of_truth_for` globs in frontmatter
|
|
103
|
-
2. AND there are commits affecting matching files AFTER the `synced_at` hash
|
|
104
|
-
|
|
105
|
-
### synced_at Checkpoint
|
|
106
|
-
|
|
107
|
-
Add `synced_at: <git-hash>` to doc frontmatter to mark the last sync point:
|
|
108
|
-
|
|
109
|
-
```yaml
|
|
110
|
-
---
|
|
111
|
-
title: Hooks Reference
|
|
112
|
-
updated: 2026-03-21
|
|
113
|
-
synced_at: a1b2c3d # git hash when doc was last synced
|
|
114
|
-
source_of_truth_for:
|
|
115
|
-
- "hooks/**/*.mjs"
|
|
116
|
-
---
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
After updating a doc, run:
|
|
120
|
-
```bash
|
|
121
|
-
python3 "skills/sync-docs/scripts/drift_detector.py" update-sync docs/hooks.md
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
This sets `synced_at` to current HEAD, marking the doc as synced.
|
|
125
|
-
|
|
126
|
-
---
|
|
127
|
-
|
|
128
|
-
## Phase 4: Analyze Document Structure
|
|
129
|
-
|
|
130
|
-
```bash
|
|
131
|
-
python3 "skills/sync-docs/scripts/doc_structure_analyzer.py"
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
Checks:
|
|
135
|
-
1. README bloat/extractable sections
|
|
136
|
-
2. CHANGELOG staleness (date + version gap)
|
|
137
|
-
3. Missing focused docs files
|
|
138
|
-
4. Invalid docs schema (missing frontmatter)
|
|
139
|
-
|
|
140
|
-
Statuses: `BLOATED`, `EXTRACTABLE`, `MISSING`, `STALE`, `INVALID_SCHEMA`, `OK`.
|
|
141
|
-
|
|
142
|
-
If this is audit-only, stop here and report. In the report, include both:
|
|
143
|
-
- `xtrm docs` findings (operator-facing)
|
|
144
|
-
- Python analyzer findings (drift/structure enforcement)
|
|
145
|
-
|
|
146
|
-
---
|
|
147
|
-
|
|
148
|
-
## Phase 5: Execute Fixes
|
|
149
|
-
|
|
150
|
-
| Situation | Action |
|
|
151
|
-
|---|---|
|
|
152
|
-
| README bloated | Extract large sections to focused docs files |
|
|
153
|
-
| Missing docs file | Generate scaffold via `validate_doc.py --generate` |
|
|
154
|
-
| Stale docs file | Update content + bump `version` + `updated` |
|
|
155
|
-
| Stale CHANGELOG | Add entry with local changelog script |
|
|
156
|
-
| Invalid schema | Fix frontmatter and regenerate INDEX |
|
|
157
|
-
|
|
158
|
-
### Auto-fix known gaps
|
|
159
|
-
|
|
160
|
-
```bash
|
|
161
|
-
python3 "skills/sync-docs/scripts/doc_structure_analyzer.py" --fix
|
|
162
|
-
python3 "skills/sync-docs/scripts/doc_structure_analyzer.py" --fix --bd-remember
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
### Create one docs scaffold
|
|
166
|
-
|
|
167
|
-
```bash
|
|
168
|
-
python3 "skills/sync-docs/scripts/validate_doc.py" --generate docs/hooks.md \
|
|
169
|
-
--title "Hooks Reference" --scope "hooks" --category "reference" \
|
|
170
|
-
--source-for "hooks/**/*.mjs,policies/*.json"
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
### Validate and regenerate metadata/index
|
|
174
|
-
|
|
175
|
-
```bash
|
|
176
|
-
python3 "skills/sync-docs/scripts/validate_metadata.py" docs/
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
### Re-run xtrm docs suite after fixes
|
|
180
|
-
|
|
181
|
-
```bash
|
|
182
|
-
xtrm docs list --json
|
|
183
|
-
xtrm docs show --json
|
|
184
|
-
xtrm docs cross-check --json --days 30
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
Use this pass to confirm the user-facing docs workflow now reflects the repaired state before final validation.
|
|
188
|
-
|
|
189
|
-
### Add changelog entry
|
|
190
|
-
|
|
191
|
-
```bash
|
|
192
|
-
python3 "skills/sync-docs/scripts/changelog/add_entry.py" \
|
|
193
|
-
CHANGELOG.md Added "Describe the documentation update"
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
---
|
|
197
|
-
|
|
198
|
-
## Phase 6: Final Validation
|
|
199
|
-
|
|
200
|
-
Run both layers:
|
|
201
|
-
|
|
202
|
-
```bash
|
|
203
|
-
xtrm docs list --json
|
|
204
|
-
xtrm docs show --json
|
|
205
|
-
xtrm docs cross-check --json --days 30
|
|
206
|
-
python3 "skills/sync-docs/scripts/validate_doc.py" docs/
|
|
207
|
-
python3 "skills/sync-docs/scripts/drift_detector.py" scan --since 30
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
The `xtrm docs` commands confirm the end-user/operator view; the Python tools confirm schema and tracked-doc drift guarantees.
|
|
211
|
-
|
|
212
|
-
---
|
|
213
|
-
|
|
214
|
-
## Frontmatter Schema
|
|
215
|
-
|
|
216
|
-
All `docs/*.md` files require valid YAML frontmatter. Scripts only validate `docs/*.md` (not subdirectories).
|
|
217
|
-
|
|
218
|
-
### Required Fields
|
|
219
|
-
|
|
220
|
-
| Field | Format | Example |
|
|
221
|
-
|-------|--------|---------|
|
|
222
|
-
| `title` | string (quote if contains colon) | `"Session-Flow: Pi Parity"` |
|
|
223
|
-
| `scope` | string | `hooks` |
|
|
224
|
-
| `category` | enum (see below) | `reference` |
|
|
225
|
-
| `version` | semver | `1.0.0` |
|
|
226
|
-
| `updated` | date | `2026-03-22` |
|
|
227
|
-
|
|
228
|
-
### Valid Categories
|
|
229
|
-
|
|
230
|
-
Only these values pass validation:
|
|
231
|
-
|
|
232
|
-
| Category | Use for |
|
|
233
|
-
|----------|---------|
|
|
234
|
-
| `api` | API documentation |
|
|
235
|
-
| `architecture` | System design, architecture decisions |
|
|
236
|
-
| `guide` | How-to guides, tutorials |
|
|
237
|
-
| `overview` | High-level introductions |
|
|
238
|
-
| `plan` | Planning documents, roadmaps |
|
|
239
|
-
| `reference` | Reference documentation |
|
|
240
|
-
|
|
241
|
-
**Invalid**: `roadmap`, `deprecated`, `complete` — will fail validation.
|
|
242
|
-
|
|
243
|
-
### YAML Quoting
|
|
244
|
-
|
|
245
|
-
Titles with special characters (colons, quotes) must be quoted:
|
|
246
|
-
|
|
247
|
-
```yaml
|
|
248
|
-
# ✅ Correct
|
|
249
|
-
title: "Session-Flow: Pi Parity"
|
|
250
|
-
title: "What's New in v2.0"
|
|
251
|
-
|
|
252
|
-
# ❌ Incorrect — YAML parse error
|
|
253
|
-
title: Session-Flow: Pi Parity
|
|
254
|
-
title: What's New in v2.0
|
|
255
|
-
```
|
|
256
|
-
|
|
257
|
-
### Optional Fields
|
|
258
|
-
|
|
259
|
-
| Field | Format | Use |
|
|
260
|
-
|-------|--------|-----|
|
|
261
|
-
| `description` | string (quoted) | Brief summary |
|
|
262
|
-
| `source_of_truth_for` | list of globs | Link to code areas |
|
|
263
|
-
| `synced_at` | git hash | Drift checkpoint |
|
|
264
|
-
| `domain` | list of tags | Categorization |
|
|
265
|
-
|
|
266
|
-
---
|
|
267
|
-
|
|
268
|
-
## docs/ as SSOT
|
|
269
|
-
|
|
270
|
-
`docs/` is the only source of truth for project documentation in this workflow.
|
|
271
|
-
Scripts validate `docs/*.md` only — subdirectories (`docs/plans/`, `docs/reference/`) are ignored.
|
|
272
|
-
Use frontmatter (`source_of_truth_for`) to link docs pages to code areas and detect drift.
|
|
273
|
-
|
|
274
|
-
## Command Selection Rules
|
|
275
|
-
|
|
276
|
-
Use `xtrm docs` commands first when the task is about understanding the current docs state:
|
|
277
|
-
- `xtrm docs list --json` → inventory and filtering
|
|
278
|
-
- `xtrm docs show --json` → frontmatter inspection
|
|
279
|
-
- `xtrm docs cross-check --json` → recent-work drift, coverage gaps, open issue refs
|
|
280
|
-
|
|
281
|
-
Use Python scripts when the task is about enforcement or synchronization internals:
|
|
282
|
-
- `drift_detector.py` → `synced_at` / `source_of_truth_for` drift checks for `docs/*.md`
|
|
283
|
-
- `doc_structure_analyzer.py` → README bloat, missing focused docs, changelog version gaps
|
|
284
|
-
- `validate_metadata.py` / `validate_doc.py` → schema/index validation
|
|
285
|
-
|
|
286
|
-
Do not replace the Python tools with `xtrm docs`; use the CLI for operator-facing inspection and the scripts for authoritative structural validation.
|