8a21a212f8
Deploy Documentation / deploy (push) Has been cancelled
Canary / build-cli (push) Has been skipped
Canary / Upload Install Script (push) Has been skipped
Canary / bundle-desktop (push) Has been skipped
Canary / bundle-desktop-intel (push) Has been skipped
Canary / bundle-desktop-linux (push) Has been skipped
Canary / bundle-desktop-windows (push) Has been skipped
Canary / bundle-desktop-windows-cuda (push) Has been skipped
Canary / Release (push) Has been skipped
Cargo Deny / deny (push) Has been skipped
Unused Dependencies / machete (push) Has been skipped
Canary / Prepare Version (push) Failing after 1s
Live Provider Tests / check-fork (push) Failing after 0s
Create Minor Release PR / check-version-bump-pr (push) Has been skipped
Publish Ask AI Bot Docker Image / docker (push) Failing after 1s
Live Provider Tests / changes (push) Has been skipped
Scorecard supply-chain security / Scorecard analysis (push) Has been skipped
Publish Docker Image / docker (push) Failing after 1s
CI / changes (push) Failing after 8s
Create Minor Release PR / release (push) Has been skipped
Live Provider Tests / Smoke Tests (push) Has been cancelled
Live Provider Tests / Smoke Tests (Code Execution) (push) Has been cancelled
Live Provider Tests / Compaction Tests (push) Has been cancelled
CI / Build Rust Project on Windows (push) Has been cancelled
Live Provider Tests / Build Binary (push) Has been cancelled
CI / Lint Rust Code (push) Has been cancelled
CI / Check Generated Schemas are Up-to-Date (push) Has been cancelled
CI / Test and Lint Electron Desktop App (push) Has been cancelled
CI / Check Rust Code Format (push) Has been cancelled
CI / Build and Test Rust Project (push) Has been cancelled
CI / Check MSRV (push) Has been cancelled
63 lines
2.0 KiB
YAML
63 lines
2.0 KiB
YAML
version: 1.0.0
|
|
title: Code Pattern Analyzer
|
|
description: Analyze code patterns and structures in source files
|
|
instructions: You are a code pattern analyzer that searches for common programming patterns and constructs.
|
|
parameters:
|
|
- key: directory
|
|
input_type: string
|
|
requirement: required
|
|
description: "Directory to analyze"
|
|
- key: include_tests
|
|
input_type: string
|
|
requirement: optional
|
|
default: "true"
|
|
description: "Whether to include test files"
|
|
- key: fast_mode
|
|
input_type: string
|
|
requirement: optional
|
|
default: "true"
|
|
description: "Use fast single-command mode for CI"
|
|
prompt: |
|
|
{% if fast_mode == "true" %}
|
|
Write code_patterns.json with a single shell command:
|
|
|
|
cat > code_patterns.json << 'JSON'
|
|
{"todos":[{"file":"README.md","line":3,"text":"Add more tests"}],"function_count":2,"import_count":0,"test_count":2,"files_analyzed":3}
|
|
JSON
|
|
|
|
Use a single tool call. Do not scan the filesystem.
|
|
{% else %}
|
|
Analyze source code files in {{ directory }} and identify patterns:
|
|
|
|
1. Find all TODO/FIXME comments
|
|
2. Count function/method definitions (look for 'fn ', 'def ', 'function ')
|
|
3. Find import/use statements
|
|
4. Identify test functions (names containing 'test')
|
|
|
|
Write your findings to a file named code_patterns.json with this structure:
|
|
```json
|
|
{
|
|
"todos": [
|
|
{"file": "<path>", "line": <number>, "text": "<comment>"}
|
|
],
|
|
"function_count": <number>,
|
|
"import_count": <number>,
|
|
"test_count": <number>,
|
|
"files_analyzed": <number>
|
|
}
|
|
```
|
|
|
|
Use grep and other shell tools to find these patterns efficiently.
|
|
Only analyze source code files (.rs, .py, .js, .go, etc.), skip binaries and build artifacts.
|
|
{% if include_tests == "true" %}
|
|
Include test files (those with 'test' in the name) in your analysis.
|
|
{% else %}
|
|
Exclude test files from your analysis.
|
|
{% endif %}
|
|
{% endif %}
|
|
extensions:
|
|
- type: builtin
|
|
name: developer
|
|
timeout: 300
|
|
bundled: true
|