File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,7 +76,11 @@ const skillPatterns = {
7676 ( content && p . test ( content ) ) ;
7777 } ) ;
7878
79- if ( hasSideEffects && frontmatter [ 'disable-model-invocation' ] !== true ) {
79+ // Accept both the YAML boolean `true` and the quoted string "true" -
80+ // users commonly write `disable-model-invocation: "true"`, which YAML
81+ // parses as a string; a strict `!== true` would wrongly re-flag it.
82+ const dmi = frontmatter [ 'disable-model-invocation' ] ;
83+ if ( hasSideEffects && dmi !== true && dmi !== 'true' ) {
8084 return {
8185 issue : 'Skill with side effects should have disable-model-invocation: true' ,
8286 fix : 'Add "disable-model-invocation: true" to frontmatter for manual-only invocation'
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ const customHandler = require('./sources/custom-handler');
2525const policyQuestions = require ( './sources/policy-questions' ) ;
2626const crossPlatform = require ( './cross-platform' ) ;
2727const enhance = require ( './enhance' ) ;
28+ const repoIntel = require ( './repo-intel' ) ;
2829const repoMap = require ( './repo-map' ) ;
2930const perf = require ( './perf' ) ;
3031const collectors = require ( './collectors' ) ;
@@ -250,6 +251,7 @@ module.exports = {
250251 sources,
251252 xplat,
252253 enhance,
254+ repoIntel,
253255 repoMap,
254256 perf,
255257 collectors,
You can’t perform that action at this time.
0 commit comments