MCPcopy Create free account

hub / github.com/WordPress/agent-skills / functions

Functions110 in github.com/WordPress/agent-skills

↓ 19 callersFunctionexistsFile
(p)
skills/wp-project-triage/scripts/detect_wp_project.mjs:68
↓ 16 callersFunctionassert
(condition, message)
eval/harness/run.mjs:52
↓ 11 callersFunctionexistsDir
(p)
skills/wp-project-triage/scripts/detect_wp_project.mjs:73
↓ 8 callersFunctionreadFileSafe
(p, maxBytes = 256 * 1024)
skills/wp-project-triage/scripts/detect_wp_project.mjs:26
↓ 6 callersFunctionassert
(condition, message)
shared/scripts/skillpack-install.mjs:86
↓ 6 callersFunctionrunWp
(cmdArgs, { pathArg, urlArg, allowRoot })
skills/wp-performance/scripts/perf_inspect.mjs:25
↓ 6 callersFunctionrunWp
(cmdArgs, { pathArg, urlArg, allowRoot })
skills/wp-wpcli-and-ops/scripts/wpcli_inspect.mjs:15
↓ 5 callersFunctionassert
(condition, message)
shared/scripts/skillpack-build.mjs:44
↓ 5 callersFunctioncanRun
(report, result, noteIfNotOk)
skills/wp-performance/scripts/perf_inspect.mjs:43
↓ 5 callersFunctionfindFilesRecursive
(repoRoot, predicate, { maxFiles = 6000, maxDepth = 8 } = {})
skills/wp-project-triage/scripts/detect_wp_project.mjs:90
↓ 5 callersFunctionisFile
* Checks whether a path exists and is a regular file. * * @param {string} filePath Absolute or relative file path. * @returns {boolean} True when t
skills/wp-phpstan/scripts/phpstan_inspect.mjs:46
↓ 4 callersFunctionexistsDir
(p)
skills/wp-block-themes/scripts/detect_block_themes.mjs:23
↓ 4 callersFunctionexistsFile
(p)
skills/wp-performance/scripts/perf_inspect.mjs:17
↓ 4 callersFunctionhasScript
(name)
skills/wp-project-triage/scripts/detect_wp_project.mjs:271
↓ 4 callersFunctionloadJson
* Load JSON file safely
shared/scripts/ai-generate-updates.mjs:30
↓ 4 callersFunctionscanForTokens
(repoRoot, { tokens, exts, maxFiles = 2500, maxDepth = 8 })
skills/wp-project-triage/scripts/detect_wp_project.mjs:36
↓ 3 callersFunctionassert
(condition, message)
shared/scripts/scaffold-skill.mjs:18
↓ 3 callersFunctionenabled
(name)
skills/wp-project-triage/scripts/detect_wp_project.mjs:211
↓ 3 callersFunctionmentioned
(name)
skills/wp-project-triage/scripts/detect_wp_project.mjs:215
↓ 3 callersFunctionsaveSyncState
* Save current sync state
shared/scripts/ai-generate-updates.mjs:82
↓ 3 callersFunctionwriteJson
(filePath, value)
shared/scripts/update-upstream-indices.mjs:15
↓ 2 callersFunctioncallClaude
* Call Claude API
shared/scripts/ai-generate-updates.mjs:282
↓ 2 callersFunctionfetchJson
(url)
shared/scripts/update-upstream-indices.mjs:51
↓ 2 callersFunctionfetchText
(url)
shared/scripts/update-upstream-indices.mjs:40
↓ 2 callersFunctiongetSourceDir
(fromDir, target)
shared/scripts/skillpack-install.mjs:139
↓ 2 callersFunctionisSymlink
(p)
shared/scripts/skillpack-build.mjs:48
↓ 2 callersFunctionisSymlink
(p)
shared/scripts/skillpack-install.mjs:90
↓ 2 callersFunctionlistSkillDirs
(skillsRoot)
shared/scripts/skillpack-install.mjs:127
↓ 2 callersFunctionstatSafe
(p)
skills/wp-project-triage/scripts/detect_wp_project.mjs:18
↓ 2 callersFunctionusage
()
shared/scripts/skillpack-install.mjs:5
↓ 2 callersFunctionwriteJson
* Write JSON file with directory creation
shared/scripts/ai-generate-updates.mjs:41
↓ 1 callersFunctionbuildAnalysisPrompt
* Build the prompt for AI analysis
shared/scripts/ai-generate-updates.mjs:188
↓ 1 callersFunctionbuildConfigHints
* Extracts lightweight hints from a phpstan.neon config. * * This does not parse NEON. It only checks for common directive tokens so the * agent ca
skills/wp-phpstan/scripts/phpstan_inspect.mjs:149
↓ 1 callersFunctionbuildRecommendations
({ repoRoot, primaryKind, packageManager, packageJson, composerJson, tooling, signals })
skills/wp-project-triage/scripts/detect_wp_project.mjs:264
↓ 1 callersFunctionbuildReport
* Builds a JSON report describing the current repository's PHPStan setup. * * @returns {object} A stable, machine-readable inspection report.
skills/wp-phpstan/scripts/phpstan_inspect.mjs:183
↓ 1 callersFunctionbuildTarget
({ repoRoot, outDir, target, skillDirs })
shared/scripts/skillpack-build.mjs:98
↓ 1 callersFunctionbuildUpdatePrompt
* Build prompt for generating skill updates
shared/scripts/ai-generate-updates.mjs:229
↓ 1 callersFunctioncopyDir
({ srcDir, destDir })
shared/scripts/skillpack-build.mjs:62
↓ 1 callersFunctioncopyDir
({ srcDir, destDir })
shared/scripts/skillpack-install.mjs:104
↓ 1 callersFunctioncopyFileSyncPreserveMode
(src, dest)
shared/scripts/skillpack-build.mjs:56
↓ 1 callersFunctioncopyFileSyncPreserveMode
(src, dest)
shared/scripts/skillpack-install.mjs:98
↓ 1 callersFunctiondecodeHtml
(text)
shared/scripts/update-upstream-indices.mjs:29
↓ 1 callersFunctiondetectChanges
* Detect what changed between last sync and current state
shared/scripts/ai-generate-updates.mjs:94
↓ 1 callersFunctiondetectConfigConstants
(repoRoot)
skills/wp-project-triage/scripts/detect_wp_project.mjs:197
↓ 1 callersFunctiondetectKinds
(repoRoot, signals)
skills/wp-project-triage/scripts/detect_wp_project.mjs:230
↓ 1 callersFunctiondetectPackageManager
(repoRoot)
skills/wp-project-triage/scripts/detect_wp_project.mjs:78
↓ 1 callersFunctiondetectPluginHeaderFromPhpFile
(filePath)
skills/wp-project-triage/scripts/detect_wp_project.mjs:124
↓ 1 callersFunctiondetectThemeHeaderFromStyleCss
(filePath)
skills/wp-project-triage/scripts/detect_wp_project.mjs:132
↓ 1 callersFunctionextractStubPackageReferences
* Extracts stub-like package references from a PHPStan config. * * The PHPStan config usually references stubs via vendor paths (for example, * "ve
skills/wp-phpstan/scripts/phpstan_inspect.mjs:168
↓ 1 callersFunctionfindFilesRecursive
(repoRoot, predicate, { maxFiles = 6000, maxDepth = 10 } = {})
skills/wp-block-themes/scripts/detect_block_themes.mjs:36
↓ 1 callersFunctionfindFilesRecursive
(repoRoot, predicate, { maxFiles = 6000, maxDepth = 10 } = {})
skills/wp-block-development/scripts/list_blocks.mjs:36
↓ 1 callersFunctionfindFilesRecursive
(repoRoot, predicate, { maxFiles = 6000, maxDepth = 10 } = {})
skills/wp-plugin-development/scripts/detect_plugins.mjs:33
↓ 1 callersFunctionfindPhpstanScripts
* Detects which Composer scripts invoke PHPStan. * * This helps the agent prefer the repo's own invocation (memory limits, * config, bootstrap file
skills/wp-phpstan/scripts/phpstan_inspect.mjs:78
↓ 1 callersFunctiongetDestDir
(destRepoRoot, target)
shared/scripts/skillpack-install.mjs:153
↓ 1 callersFunctiongetUpstreamStateHash
* Get current upstream state hash for comparison
shared/scripts/ai-generate-updates.mjs:49
↓ 1 callersFunctionguessGutenbergVersion
(repoRoot)
skills/wp-project-triage/scripts/detect_wp_project.mjs:150
↓ 1 callersFunctionguessWpCoreVersionFromCheckout
(repoRoot)
skills/wp-project-triage/scripts/detect_wp_project.mjs:140
↓ 1 callersFunctioninstallTarget
({ fromDir, destRepoRoot, target, skillsFilter, mode, dryRun })
shared/scripts/skillpack-install.mjs:172
↓ 1 callersFunctionlistAvailableSkills
(fromDir)
shared/scripts/skillpack-install.mjs:221
↓ 1 callersFunctionlistSkillDirs
(repoRoot)
eval/harness/run.mjs:9
↓ 1 callersFunctionlistSkillDirs
(skillsRoot)
shared/scripts/skillpack-build.mjs:88
↓ 1 callersFunctionloadLastSyncState
* Load last sync state
shared/scripts/ai-generate-updates.mjs:75
↓ 1 callersFunctionloadSkillContent
* Load a skill's SKILL.md content
shared/scripts/ai-generate-updates.mjs:157
↓ 1 callersFunctionloadSkillReferences
* Load all reference docs for a skill
shared/scripts/ai-generate-updates.mjs:169
↓ 1 callersFunctionloadUpstreamIndices
* Load all current upstream indices
shared/scripts/ai-generate-updates.mjs:64
↓ 1 callersFunctionmain
()
eval/harness/run.mjs:80
↓ 1 callersFunctionmain
()
shared/scripts/scaffold-skill.mjs:33
↓ 1 callersFunctionmain
()
shared/scripts/update-upstream-indices.mjs:137
↓ 1 callersFunctionmain
()
shared/scripts/skillpack-build.mjs:122
↓ 1 callersFunctionmain
()
shared/scripts/skillpack-install.mjs:239
↓ 1 callersFunctionmain
* Main execution
shared/scripts/ai-generate-updates.mjs:313
↓ 1 callersFunctionmain
()
skills/wp-block-themes/scripts/detect_block_themes.mjs:95
↓ 1 callersFunctionmain
()
skills/wp-block-development/scripts/list_blocks.mjs:99
↓ 1 callersFunctionmain
()
skills/wp-plugin-development/scripts/detect_plugins.mjs:88
↓ 1 callersFunctionmain
()
skills/wp-performance/scripts/perf_inspect.mjs:49
↓ 1 callersFunctionmain
()
skills/wp-wpcli-and-ops/scripts/wpcli_inspect.mjs:33
↓ 1 callersFunctionmain
* CLI entrypoint for printing the inspection report.
skills/wp-phpstan/scripts/phpstan_inspect.mjs:258
↓ 1 callersFunctionmain
()
skills/wp-project-triage/scripts/detect_wp_project.mjs:291
↓ 1 callersFunctionmkdirp
(dirPath)
shared/scripts/update-upstream-indices.mjs:11
↓ 1 callersFunctionnormalizeComposerScript
* Normalizes Composer script entries into a flat list of commands. * * Composer allows scripts to be strings or arrays. This helper provides a * co
skills/wp-phpstan/scripts/phpstan_inspect.mjs:63
↓ 1 callersFunctionnormalizeGutenbergReleases
(payload)
shared/scripts/update-upstream-indices.mjs:121
↓ 1 callersFunctionnormalizeWpVersionCheckPayload
(payload)
shared/scripts/update-upstream-indices.mjs:88
↓ 1 callersFunctionparseArgs
(argv)
shared/scripts/skillpack-build.mjs:28
↓ 1 callersFunctionparseArgs
(argv)
shared/scripts/skillpack-install.mjs:50
↓ 1 callersFunctionparseArgs
(argv)
skills/wp-performance/scripts/perf_inspect.mjs:7
↓ 1 callersFunctionparseArgs
(argv)
skills/wp-wpcli-and-ops/scripts/wpcli_inspect.mjs:5
↓ 1 callersFunctionparseComposerJson
(repoRoot)
skills/wp-project-triage/scripts/detect_wp_project.mjs:185
↓ 1 callersFunctionparseFrontmatter
(markdown)
eval/harness/run.mjs:18
↓ 1 callersFunctionparsePackageJson
(repoRoot)
skills/wp-project-triage/scripts/detect_wp_project.mjs:173
↓ 1 callersFunctionparsePluginHeader
(contents)
skills/wp-plugin-development/scripts/detect_plugins.mjs:67
↓ 1 callersFunctionparseWpGutenbergMapFromHtml
(html)
shared/scripts/update-upstream-indices.mjs:60
↓ 1 callersFunctionreadFileSafe
(p, maxBytes = 128 * 1024)
skills/wp-plugin-development/scripts/detect_plugins.mjs:23
↓ 1 callersFunctionreadJsonSafe
(p)
skills/wp-block-themes/scripts/detect_block_themes.mjs:28
↓ 1 callersFunctionreadJsonSafe
(p)
skills/wp-block-development/scripts/list_blocks.mjs:28
↓ 1 callersFunctionreadJsonSafe
* Reads and parses JSON from a file path. * * Returns null when parsing fails so the caller can provide user-facing * guidance without crashing. *
skills/wp-phpstan/scripts/phpstan_inspect.mjs:15
↓ 1 callersFunctionreadTextSafe
* Reads a UTF-8 text file. * * Returns null when reading fails so callers can surface missing configs * without crashing. * * @param {string} fil
skills/wp-phpstan/scripts/phpstan_inspect.mjs:32
↓ 1 callersFunctionreadUtf8
(filePath)
eval/harness/run.mjs:5
↓ 1 callersFunctionrunJsonCommand
(command, args, cwd)
eval/harness/run.mjs:67
↓ 1 callersFunctionstatSafe
(p)
skills/wp-block-themes/scripts/detect_block_themes.mjs:15
↓ 1 callersFunctionstatSafe
(p)
skills/wp-block-development/scripts/list_blocks.mjs:15
next →1–100 of 110, ranked by callers