cmdop-coder
CMDOP Skill — install and use via CMDOP agent:
cmdop-skill install cmdop-coder
Code analysis using tree-sitter AST parsing. Extract functions, find symbols, get structural outlines. Supports 40+ languages.
Install
pip install cmdop-coder
Or as a CMDOP skill:
cmdop-skill install path/to/cmdop-coder
CLI
Extract functions
cmdop-coder functions --path src/main.py
{
"file": "src/main.py",
"language": "python",
"count": 3,
"functions": [
{"line": 5, "name": "hello", "signature": "def hello(name: str) -> str:"},
{"line": 9, "name": "fetch", "signature": "async def fetch(url: str) -> bytes:"}
]
}
Find symbol
cmdop-coder symbols --symbol MyClass --path ./src
Structural outline
cmdop-coder outline --path internal/agent/core/agent.go
File statistics
cmdop-coder analyze --path service.py
Python API
from cmdop_coder import extract_functions, find_symbol, get_outline, analyze_file
# Extract all functions from a file
result = extract_functions("src/main.py")
for fn in result.functions:
print(fn.line, fn.name, fn.signature)
# Find symbol across a directory
matches = find_symbol("MyClass", "./src")
for m in matches.matches:
print(m.file, m.line, m.text)
# Structural outline
outline = get_outline("main.go")
for item in outline.outline:
print(item.line, item.type, item.name)
# File statistics
stats = analyze_file("service.py")
print(stats.language, stats.total_lines, stats.function_count)
Supported Languages
Go, Python, JavaScript, TypeScript, TSX, Rust, Java, C, C++, Ruby, PHP, Swift, Kotlin, C#, CSS, HTML, JSON, YAML, TOML, Bash, SQL, Lua, Scala, Elixir, Elm, Haskell, OCaml, HCL, Dockerfile and more.
Metadata
Release files for cmdop-coder 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cmdop_coder-0.1.13.tar.gz | 69.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cmdop_coder-0.1.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 76.1 kB
Release files / cmdop_coder-0.1.13.tar.gz
| Download URL | cmdop_coder-0.1.13.tar.gz |
|---|---|
| Size | 69.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfd740f4b147e26c0d8c6b4ecb9ed61cd908c808c60a038214e0526386fea577
|
|
BLAKE2b-256 checksum How to use checksums |
fc6076314f1dc50c72069ab545125bd0b5a0d54617fe83f1ace0b281a82b09e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.18
|
Release files / cmdop_coder-0.1.13-py3-none-any.whl
| Download URL | cmdop_coder-0.1.13-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
314a9c0dbc11210868f7b7c8955a610e26fbd5766d7d607109b9e0d449facbe0
|
|
BLAKE2b-256 checksum How to use checksums |
235f8f73fd4ed8c2f2b2112e2f96e5c3d986a1000f2bae74b1325a0f2a44b2c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.18
|