MCPcopy Create free account

hub / github.com/anthropics/claude-plugins-official / functions

Functions313 in github.com/anthropics/claude-plugins-official

↓ 1 callersFunctionextract_content_from_input
Extract content to check from tool input based on tool type.
plugins/security-guidance/hooks/security_reminder_hook.py:495
↓ 1 callersFunctionfence
plugins/code-modernization/workflows/uplift-deltas.js:27
↓ 1 callersFunctionfence
plugins/code-modernization/workflows/harden-scan.js:25
↓ 1 callersFunctionfence
plugins/code-modernization/workflows/reimagine-scaffold.js:33
↓ 1 callersFunctionfilter_preexisting_from_diff
Filter out pre-existing content from diff files. When a file is fully rewritten (Write tool replaces entire content), git shows all lines
plugins/security-guidance/hooks/gitutil.py:727
↓ 1 callersFunctiongate
(ctx: Context)
external_plugins/telegram/server.ts:227
↓ 1 callersFunctiongate
(msg: Message)
external_plugins/discord/server.ts:236
↓ 1 callersFunctiongate
(input: GateInput)
external_plugins/imessage/server.ts:326
↓ 1 callersFunctiongenerate_benchmark
Generate complete benchmark.json from run results.
plugins/skill-creator/skills/skill-creator/scripts/aggregate_benchmark.py:227
↓ 1 callersFunctiongenerate_markdown
Generate human-readable benchmark.md from benchmark data.
plugins/skill-creator/skills/skill-creator/scripts/aggregate_benchmark.py:281
↓ 1 callersFunctionget_baseline_file_content
Get the content of a file at the baseline SHA. Returns None if unavailable. Decode the file content as UTF-8 with errors="replace" rather than us
plugins/security-guidance/hooks/diffstate.py:140
↓ 1 callersFunctionget_lock_file
Get session-specific lock file path.
plugins/security-guidance/hooks/session_state.py:43
↓ 1 callersFunctionget_mime_type
(path: Path)
plugins/skill-creator/skills/skill-creator/eval-viewer/generate_review.py:52
↓ 1 callersFunctionhandleInbound
(msg: Message)
external_plugins/discord/server.ts:810
↓ 1 callersFunctionhandleInbound
(r: Row)
external_plugins/imessage/server.ts:777
↓ 1 callersFunctionhandleUser
( e, info, { project, overall, subagent }, setSkill, setPrompt, )
plugins/session-report/skills/session-report/analyze-sessions.mjs:420
↓ 1 callersFunctionhandle_commit_review_posttooluse
PostToolUse handler for Bash — reviews git commits for security issues. Runs as asyncRewake: detects `git commit` in the Bash command, parses
plugins/security-guidance/hooks/security_reminder_hook.py:1004
↓ 1 callersFunctionhandle_push_sweep_posttooluse
Review the just-pushed range as one diff, advancing the base past the contiguous prefix of already-per-commit-reviewed shas. Spec: review `gi
plugins/security-guidance/hooks/security_reminder_hook.py:1495
↓ 1 callersFunctionhandle_stop_hook
Handle the Stop hook — final security check using git diff. Diffs against the baseline SHA captured at UserPromptSubmit to review only co
plugins/security-guidance/hooks/security_reminder_hook.py:1831
↓ 1 callersFunctionhandle_user_prompt_submit
Handle UserPromptSubmit — capture git baseline SHA. Called on every user prompt. Updates the baseline so the stop hook only reviews chang
plugins/security-guidance/hooks/security_reminder_hook.py:512
↓ 1 callersFunctioninferAgentTypeFromFilename
(base)
plugins/session-report/skills/session-report/analyze-sessions.mjs:151
↓ 1 callersFunctioninferAgentTypeFromMeta
(jsonlPath)
plugins/session-report/skills/session-report/analyze-sessions.mjs:140
↓ 1 callersFunctionisMentioned
(ctx: Context, extraPatterns?: string[])
external_plugins/telegram/server.ts:300
↓ 1 callersFunctionisMentioned
(msg: Message, extraPatterns?: string[])
external_plugins/discord/server.ts:296
↓ 1 callersFunctionisMentioned
(text: string, patterns?: string[])
external_plugins/imessage/server.ts:375
↓ 1 callersFunctionis_commit_review_enabled
Gate for the commit-review PostToolUse[Bash] hook. Commit review is enabled by default; ENABLE_COMMIT_REVIEW=0 remains the unconditional kill
plugins/security-guidance/hooks/security_reminder_hook.py:918
↓ 1 callersFunctionis_push_sweep_enabled
Gate for the push-sweep PostToolUse[Bash] hook. Enabled by default. ENABLE_COMMIT_REVIEW=0 remains the unconditional kill switch (push-sweep
plugins/security-guidance/hooks/security_reminder_hook.py:794
↓ 1 callersFunctionload_baseline_sha
Load the git baseline SHA from state.
plugins/security-guidance/hooks/diffstate.py:50
↓ 1 callersFunctionload_previous_iteration
Load previous iteration's feedback and outputs. Returns a map of run_id -> {"feedback": str, "outputs": list[dict]}.
plugins/skill-creator/skills/skill-creator/eval-viewer/generate_review.py:213
↓ 1 callersFunctionload_rule_file
Load a single rule file. Returns: Rule object or None if file is invalid.
plugins/hookify/core/config_loader.py:244
↓ 1 callersFunctionload_run_results
Load all run results from a benchmark directory. Returns dict keyed by config name (e.g. "with_skill"/"without_skill", or "new_skill"/"o
plugins/skill-creator/skills/skill-creator/scripts/aggregate_benchmark.py:67
↓ 1 callersFunctionmain
()
plugins/session-report/skills/session-report/analyze-sessions.mjs:535
↓ 1 callersFunctionmain
Run the bootstrap. Returns (outcome, err_phase, err_kind). err_phase / err_kind are non-empty only on BUILD_FAILED — they let telemetry split
plugins/security-guidance/hooks/ensure_agent_sdk.py:438
↓ 1 callersFunctionmain
Main hook function.
plugins/security-guidance/hooks/security_reminder_hook.py:2152
↓ 1 callersFunctionmain
()
plugins/skill-creator/skills/skill-creator/scripts/package_skill.py:111
↓ 1 callersFunctionmain
()
plugins/skill-creator/skills/skill-creator/scripts/run_loop.py:244
↓ 1 callersFunctionmain
()
plugins/skill-creator/skills/skill-creator/scripts/generate_report.py:304
↓ 1 callersFunctionmain
()
plugins/skill-creator/skills/skill-creator/scripts/aggregate_benchmark.py:338
↓ 1 callersFunctionmain
()
plugins/skill-creator/skills/skill-creator/scripts/improve_description.py:194
↓ 1 callersFunctionmain
()
plugins/skill-creator/skills/skill-creator/scripts/run_eval.py:259
↓ 1 callersFunctionmain
()
plugins/skill-creator/skills/skill-creator/eval-viewer/generate_review.py:387
↓ 1 callersFunctionmain
Main entry point for PostToolUse hook.
plugins/hookify/hooks/posttooluse.py:26
↓ 1 callersFunctionmain
Main entry point for PreToolUse hook.
plugins/hookify/hooks/pretooluse.py:27
↓ 1 callersFunctionmain
Main entry point for UserPromptSubmit hook.
plugins/hookify/hooks/userpromptsubmit.py:26
↓ 1 callersFunctionmain
Main entry point for Stop hook.
plugins/hookify/hooks/stop.py:26
↓ 1 callersFunctionmime
(ext: string)
external_plugins/fakechat/server.ts:50
↓ 1 callersFunctionnextId
()
external_plugins/fakechat/server.ts:41
↓ 1 callersFunctionnorm
(s: string)
external_plugins/imessage/server.ts:180
↓ 1 callersFunctionnoteSent
(id: string)
external_plugins/discord/server.ts:227
↓ 1 callersFunctionpackage_skill
Package a skill folder into a .skill file. Args: skill_path: Path to the skill folder output_dir: Optional output directory
plugins/skill-creator/skills/skill-creator/scripts/package_skill.py:42
↓ 1 callersFunctionparseAttributedBody
(blob: Uint8Array | null)
external_plugins/imessage/server.ts:82
↓ 1 callersFunctionparseSince
(s)
plugins/session-report/skills/session-report/analyze-sessions.mjs:52
↓ 1 callersFunctionprintJson
({ overall, perProject, perSubagent, perSkill })
plugins/session-report/skills/session-report/analyze-sessions.mjs:651
↓ 1 callersFunctionprintText
({ overall, perProject, perSubagent, perSkill })
plugins/session-report/skills/session-report/analyze-sessions.mjs:751
↓ 1 callersFunctionprocessFile
(p, info, buckets)
plugins/session-report/skills/session-report/analyze-sessions.mjs:191
↓ 1 callersFunctionpromptPreview
(text, slashCmd)
plugins/session-report/skills/session-report/analyze-sessions.mjs:482
↓ 1 callersFunctionpromptRecord
(key, init)
plugins/session-report/skills/session-report/analyze-sessions.mjs:171
↓ 1 callersFunctionpruneExpired
(a: Access)
external_plugins/discord/server.ts:203
↓ 1 callersFunctionpruneExpired
(a: Access)
external_plugins/imessage/server.ts:302
↓ 1 callersFunctionrecord_pending_warnings
Mark file:rule pairs as pending for the Stop-hook outcome sweep.
plugins/security-guidance/hooks/security_reminder_hook.py:387
↓ 1 callersFunctionrecord_touched_path
Append a file path to the touched_paths list (deduped, capped at 200). Stop is the consumer and clears under the same lock it reads with; UPS
plugins/security-guidance/hooks/diffstate.py:57
↓ 1 callersFunctionrenderConversation
(guid: string, rows: Row[])
external_plugins/imessage/server.ts:519
↓ 1 callersFunctionrun_loop
Run the eval + improvement loop.
plugins/skill-creator/skills/skill-creator/scripts/run_loop.py:47
↓ 1 callersFunctionsendAttachment
(chatGuid: string, filePath: string)
external_plugins/imessage/server.ts:469
↓ 1 callersFunctionshould_exclude
Check if a path should be excluded from packaging.
plugins/skill-creator/skills/skill-creator/scripts/package_skill.py:27
↓ 1 callersFunctionshutdown
()
external_plugins/telegram/server.ts:649
↓ 1 callersFunctionsplit_eval_set
Split eval set into train and test sets, stratified by should_trigger.
plugins/skill-creator/skills/skill-creator/scripts/run_loop.py:24
↓ 1 callersFunctionstate_dir
Return the absolute path of the plugin's state directory. Resolution precedence (highest first): 1. SECURITY_WARNINGS_STATE_DIR — plugin-sp
plugins/security-guidance/hooks/_base.py:13
↓ 1 callersFunctionsweep_pending_warnings
Stop-hook final sweep. Re-read every file in pending_warnings, re-check patterns, and return (fixed, unresolved, unresolved_mask). Clears sta
plugins/security-guidance/hooks/security_reminder_hook.py:398
↓ 1 callersFunctionwalk
(dir)
plugins/session-report/skills/session-report/analyze-sessions.mjs:97
Method__init__
( self, workspace: Path, skill_name: str, feedback_path: Path, previou
plugins/skill-creator/skills/skill-creator/eval-viewer/generate_review.py:315
Method__init__
Initialize rule engine.
plugins/hookify/core/rule_engine.py:30
Function_agentic
()
plugins/security-guidance/hooks/security_reminder_hook.py:968
Function_check
(state)
plugins/security-guidance/hooks/security_reminder_hook.py:309
Function_fallback
()
plugins/security-guidance/hooks/security_reminder_hook.py:978
Function_leg
()
plugins/security-guidance/hooks/llm.py:638
Function_load
(state)
plugins/security-guidance/hooks/diffstate.py:52
Function_read_previous
(state)
plugins/security-guidance/hooks/security_reminder_hook.py:1328
Function_record
(state)
plugins/security-guidance/hooks/diffstate.py:65
Function_record
(state)
plugins/security-guidance/hooks/security_reminder_hook.py:389
Function_record_findings
(state)
plugins/security-guidance/hooks/security_reminder_hook.py:1455
Function_record_fire
(state)
plugins/security-guidance/hooks/security_reminder_hook.py:2027
Function_restore
(state)
plugins/security-guidance/hooks/diffstate.py:129
Function_save
(state)
plugins/security-guidance/hooks/diffstate.py:45
Function_save
(state)
plugins/security-guidance/hooks/security_reminder_hook.py:554
Function_score
(item)
plugins/security-guidance/hooks/gitutil.py:597
Function_snap
(state)
plugins/security-guidance/hooks/diffstate.py:89
Function_sweep
(state)
plugins/security-guidance/hooks/security_reminder_hook.py:405
Function_tolerant
(data)
plugins/security-guidance/hooks/llm.py:1263
Functionanalyze_security_concerns
Run a higher-level security concerns analysis on files/diffs. Identifies AREAS OF CONCERN that the main model should investigate. Returns
plugins/security-guidance/hooks/llm.py:1639
Functionatomic_check_counter
Atomically check if a counter has reached its limit and increment if not. Returns True if the counter is below max_count (should proceed),
plugins/security-guidance/hooks/security_reminder_hook.py:319
Functionbuild_investigate_prompt
( touched_paths: list[str], diff_files: list[tuple[str, str]], *, context_note: str = "", )
plugins/security-guidance/hooks/review_api.py:156
Functionbuild_refute_prompt
(candidates: list[dict[str, Any]], diff_text: str)
plugins/security-guidance/hooks/review_api.py:210
FunctioncheckApprovals
()
external_plugins/telegram/server.ts:330
FunctioncheckApprovals
()
external_plugins/discord/server.ts:327
FunctioncheckApprovals
()
external_plugins/imessage/server.ts:386
Methoddo_GET
(self)
plugins/skill-creator/skills/skill-creator/eval-viewer/generate_review.py:332
Methoddo_POST
(self)
plugins/skill-creator/skills/skill-creator/eval-viewer/generate_review.py:361
Functionextract_file_paths_from_diff
Extract file paths from unified diff output (without content). Only includes files with source code extensions. Returns a list of file pa
plugins/security-guidance/hooks/gitutil.py:657
Functionfilter_by_severity
Medium-included is the validated default; the model's investigate-stage severity is conservative and dropping mediums before self-refute filters
plugins/security-guidance/hooks/review_api.py:350
← previousnext →201–300 of 313, ranked by callers