scan_first_principles
Detects first-principles thinking in PRs by spotting dependency removals, custom implementations, and root-cause fixes, then scores quality via metrics like abstraction control.
Instructions
Scan contributions for first-principles thinking patterns.
Analyzes PRs looking for:
Dependency removals (package.json, requirements.txt, go.mod, etc.)
Custom implementations replacing external libraries
Utility/internal file additions
Root cause fixes vs band-aid patches
First-principles keywords in commit messages
Returns:
Abstraction Control Level (0.0-1.0)
Dependency Delta (negative = fewer deps = positive)
Root Fix Ratio (0.0-1.0)
Overall Score (1.0-5.0)
Detailed signals and evidence
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Optional repository filter (e.g. 'owner/repo'). | |
| since | No | Start date (ISO format). Defaults to 30 days ago. | |
| until | No | End date (ISO format). Defaults to today. | |
| username | No | GitHub username. Defaults to GITHUB_USERNAME env var. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |