-
Notifications
You must be signed in to change notification settings - Fork 348
Expand file tree
/
Copy pathhooks_mcp.yaml
More file actions
106 lines (85 loc) · 3.75 KB
/
hooks_mcp.yaml
File metadata and controls
106 lines (85 loc) · 3.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# HooksMCP Configuration File for use with Kiln
# https://github.com/scosman/hooks_mcp
actions:
- name: "check_all"
description: "Run all checks for the project (web, python, formatting, etc). Very slow. Use for final checks before committing but use more lightweight checks for faster feedback."
command: "uv run ./checks.sh"
- name: "all_python_tests"
description: "Run all python tests in the project"
command: "uv run python -m pytest --benchmark-quiet -q ."
- name: "lint_python"
description: "Lint the python source code, checking for errors and warnings"
command: "uv run ruff check"
- name: "lint_fix_python"
description: "Lint the pythong source code, fixing errors and warnings which it can fix. Not all errors can be fixed automatically."
command: "uv run ruff check --fix"
- name: "check_format_python"
description: "Check if the python source code is formatted correctly"
command: "uv run ruff format --check ."
- name: "format_python"
description: "Format the python source code"
command: "uv run ruff format ."
- name: "typecheck_python"
description: "Typecheck the source code"
command: "uv run ty check"
- name: "test_file_python"
description: "Run tests in a specific python file or directory"
command: "uv run python -m pytest $TEST_PATH"
parameters:
- name: "TEST_PATH"
type: "project_file_path"
description: "Path to test file or directory"
- name: "test_specific_python"
description: "Run a specific python test by name"
command: "uv run python -m pytest $TEST_PATH -k $TEST_NAME"
parameters:
- name: "TEST_PATH"
type: "project_file_path"
description: "Path to test file or directory"
default: "./tests"
- name: "TEST_NAME"
type: "insecure_string"
description: "Name of the test to run"
- name: "check_format_web"
description: "Check if the app/web_ui source code is formatted correctly"
command: "npm run format_check"
run_path: "app/web_ui"
- name: "lint_web"
description: "Lint the app/web_ui source code"
command: "npm run lint"
run_path: "app/web_ui"
- name: "check_web"
description: "Run svelte-check type checks and code checks on the app/web_ui source code"
command: "npm run check"
run_path: "app/web_ui"
- name: "test_web"
description: "Run tests for the app/web_ui"
command: "npm run test_run"
run_path: "app/web_ui"
- name: "build_web"
description: "Build the app/web_ui application, which will report any build issues"
command: "npm run build_quiet"
run_path: "app/web_ui"
- name: "update_api_types"
description: "Update typescript API definition for the frontend to use, from the latest FastAPI server code."
command: "npx openapi-typescript http://localhost:8757/openapi.json -o api_schema.d.ts"
run_path: "app/web_ui/src/lib/"
prompts:
- name: "AGENTS.md"
description: "Overview of the project for agents, including the purpose, architecture, and key components"
prompt-file: "AGENTS.md"
- name: "python_test_guide.md"
description: "Guide for testing best practices for python code"
prompt-file: ".agents/python_test_guide.md"
- name: "frontend_design_guide.md"
description: "Guide for UI design including color, typography, and controls"
prompt-file: ".agents/frontend_design_guide.md"
- name: "frontend_controls.md"
description: "Guide for UI controls available in the web app (spinners, buttons, dialogs, etc)"
prompt-file: ".agents/frontend_controls.md"
- name: "tables_style.md"
description: "Guide for css table styling"
prompt-file: ".agents/tables_style.md"
- name: "card_style.md"
description: "Guide for css card styling"
prompt-file: ".agents/card_style.md"