Skip to content

Commit 123cc41

Browse files
committed
skills
1 parent 499d47d commit 123cc41

File tree

17 files changed

+2469
-0
lines changed

17 files changed

+2469
-0
lines changed

.codex/skills/available_skills.xml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<available_skills>
2+
<skill>
3+
<name>cloc</name>
4+
<description>Count lines of code, analyze codebase size and composition, compare code between versions. Use when the user asks about lines of code, codebase size, language breakdown, or code statistics.</description>
5+
<location>/Users/ksemenenko/Developer/markitdown/.codex/skills/cloc/SKILL.md</location>
6+
</skill>
7+
<skill>
8+
<name>dotnet-strict</name>
9+
<description>Apply strict .NET/C# coding standards to a project or solution. Adds Roslynator and Meziantou analyzers, a comprehensive .editorconfig with 80+ diagnostic rules, naming conventions, and performance warnings. Use when the user wants to enforce strict code quality, set up analyzers, or add an .editorconfig to a .NET project.</description>
10+
<location>/Users/ksemenenko/Developer/markitdown/.codex/skills/dotnet-strict/SKILL.md</location>
11+
</skill>
12+
<skill>
13+
<name>frontend-design</name>
14+
<description>Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.</description>
15+
<location>/Users/ksemenenko/Developer/markitdown/.codex/skills/frontend-design/SKILL.md</location>
16+
</skill>
17+
<skill>
18+
<name>mcaf-adr-writing</name>
19+
<description>Create or update an ADR under `docs/ADR/` using `docs/templates/ADR-Template.md`, capturing context, decision, alternatives, consequences, rollout, and verification. Use when changing architecture, boundaries, dependencies, data model, or cross-cutting patterns; ensure the ADR is self-contained, has a Mermaid diagram, and defines testable invariants.</description>
20+
<location>/Users/ksemenenko/Developer/markitdown/.codex/skills/mcaf-adr-writing/SKILL.md</location>
21+
</skill>
22+
<skill>
23+
<name>mcaf-architecture-overview</name>
24+
<description>Create or update `docs/Architecture/Overview.md` for a repository: map modules and boundaries, add a Mermaid module diagram, document dependency rules, and link to ADRs/features. Use when onboarding, refactoring, adding modules, or when the repo lacks a clear global architecture map.</description>
25+
<location>/Users/ksemenenko/Developer/markitdown/.codex/skills/mcaf-architecture-overview/SKILL.md</location>
26+
</skill>
27+
<skill>
28+
<name>mcaf-feature-spec</name>
29+
<description>Create or update a feature document under `docs/Features/` using `docs/templates/Feature-Template.md`, including business rules, user flows, system behaviour, Mermaid diagram, verification plan, and Definition of Done. Use before implementing a non-trivial feature or when behaviour changes; make the spec executable (test flows + traceability to tests).</description>
30+
<location>/Users/ksemenenko/Developer/markitdown/.codex/skills/mcaf-feature-spec/SKILL.md</location>
31+
</skill>
32+
<skill>
33+
<name>mcaf-formatting</name>
34+
<description>Format code and keep style consistent using the repository’s canonical formatting/lint commands from AGENTS.md. Use after implementing changes or when formatting drift causes noisy diffs; keep formatting changes intentional and verified with build/tests.</description>
35+
<location>/Users/ksemenenko/Developer/markitdown/.codex/skills/mcaf-formatting/SKILL.md</location>
36+
</skill>
37+
<skill>
38+
<name>mcaf-skill-curation</name>
39+
<description>Create, update, and validate repository skills under your agent’s skills directory (Codex: `.codex/skills/`, Claude: `.claude/skills/`) so they match the real codebase and `AGENTS.md` rules; tune YAML `description` triggers, apply feedback, and generate `&lt;available_skills&gt;` metadata blocks.</description>
40+
<location>/Users/ksemenenko/Developer/markitdown/.codex/skills/mcaf-skill-curation/SKILL.md</location>
41+
</skill>
42+
<skill>
43+
<name>mcaf-testing</name>
44+
<description>Add or update automated tests for a change (bugfix, feature, refactor) using the repository’s testing rules in AGENTS.md. Use TDD (test fails → implement → pass) where applicable; derive scenarios from docs/Features/* and ADR invariants; prefer stable integration/API/UI tests, run build before tests, collect coverage, and verify meaningful assertions for happy/negative/edge cases.</description>
45+
<location>/Users/ksemenenko/Developer/markitdown/.codex/skills/mcaf-testing/SKILL.md</location>
46+
</skill>
47+
<skill>
48+
<name>pre-pr</name>
49+
<description>Run mandatory pre-PR quality checks for .NET projects before creating a pull request. Use before creating any PR, or when the user says &quot;prepare for PR&quot;, &quot;pre-PR checks&quot;, or &quot;quality gate&quot;.</description>
50+
<location>/Users/ksemenenko/Developer/markitdown/.codex/skills/pre-pr/SKILL.md</location>
51+
</skill>
52+
<skill>
53+
<name>profile</name>
54+
<description>Profile .NET applications for CPU performance, memory allocations, lock contention, exceptions, heap analysis, and JIT inlining. Use when the user asks about performance bottlenecks, memory leaks, high CPU, slow code, lock contention, excessive exceptions, GC pressure, heap growth, or JIT compilation in .NET projects.</description>
55+
<location>/Users/ksemenenko/Developer/markitdown/.codex/skills/profile/SKILL.md</location>
56+
</skill>
57+
<skill>
58+
<name>quickdup</name>
59+
<description>Find and reduce code duplication, clean up redundant code, detect code clones, reduce codebase size, DRY violations, copy-paste detection. Use when the user asks about duplicate code, code cleanup, reducing code size, DRY principles, or finding copy-pasted code.</description>
60+
<location>/Users/ksemenenko/Developer/markitdown/.codex/skills/quickdup/SKILL.md</location>
61+
</skill>
62+
<skill>
63+
<name>roslynator</name>
64+
<description>Run C# static analysis, auto-fix code issues, format code, find unused code, and enforce coding standards in .NET projects. Use when the user asks about code quality, linting, static analysis, code cleanup, unused code, or formatting in C# / .NET projects.</description>
65+
<location>/Users/ksemenenko/Developer/markitdown/.codex/skills/roslynator/SKILL.md</location>
66+
</skill>
67+
</available_skills>

.codex/skills/cloc/SKILL.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
name: cloc
3+
description: Count lines of code, analyze codebase size and composition, compare code between versions. Use when the user asks about lines of code, codebase size, language breakdown, or code statistics.
4+
argument-hint: "[path or git ref]"
5+
---
6+
7+
## Prerequisites
8+
9+
Before running cloc, check if it is installed:
10+
11+
```
12+
which cloc
13+
```
14+
15+
If not found, install it:
16+
- macOS: `brew install cloc`
17+
- npm: `npm install -g cloc`
18+
- Debian/Ubuntu: `sudo apt install cloc`
19+
- Red Hat/Fedora: `sudo yum install cloc`
20+
21+
## About cloc
22+
23+
cloc counts blank lines, comment lines, and physical lines of source code in 200+ programming languages. It can analyze files, directories, archives (tar, zip, .whl, .ipynb), and git commits/branches.
24+
25+
## Common Usage
26+
27+
**Count a directory (default: current project):**
28+
```
29+
cloc .
30+
```
31+
32+
**Count using git file list (respects .gitignore):**
33+
```
34+
cloc --vcs=git
35+
```
36+
37+
**Count a specific path:**
38+
```
39+
cloc $ARGUMENTS
40+
```
41+
42+
**Count by file (detailed breakdown):**
43+
```
44+
cloc --by-file --vcs=git
45+
```
46+
47+
**Diff between two git refs:**
48+
```
49+
cloc --git --diff <ref1> <ref2>
50+
```
51+
52+
**Exclude directories:**
53+
```
54+
cloc --exclude-dir=node_modules,vendor,.git .
55+
```
56+
57+
## Output Formats
58+
59+
Use these flags for machine-readable output:
60+
- `--json` — JSON
61+
- `--yaml` — YAML
62+
- `--csv` — CSV
63+
- `--md` — Markdown table
64+
- `--xml` — XML
65+
66+
## Useful Flags
67+
68+
| Flag | Purpose |
69+
|------|---------|
70+
| `--by-file` | Per-file breakdown instead of per-language |
71+
| `--vcs=git` | Use git to get file list (respects .gitignore) |
72+
| `--git` | Treat arguments as git targets (commits, branches) |
73+
| `--diff <a> <b>` | Show added/removed/modified lines between two sources |
74+
| `--exclude-dir=<d1,d2>` | Skip directories |
75+
| `--exclude-lang=<l1,l2>` | Skip languages |
76+
| `--include-lang=<l1,l2>` | Only count these languages |
77+
| `--force-lang=<lang>,<ext>` | Map file extension to a language |
78+
| `--processes=N` | Parallel processing (N cores) |
79+
| `--quiet` | Suppress progress output |
80+
81+
## Guidelines
82+
83+
- Prefer `--vcs=git` over bare `.` to avoid counting generated/vendored files
84+
- Use `--json` when the user needs to process the output programmatically
85+
- When comparing versions, use `--git --diff <ref1> <ref2>`
86+
- For large repos, consider `--processes=N` to speed things up

0 commit comments

Comments
 (0)