cli-anything-qgis
하는 일
이 스킬은 에이전트가 명령줄에서 QGIS 지도 프로젝트를 다루게 합니다. 지도를 만들거나 지리 데이터를 다루며, 작업 일부를 자동화하려는 사람을 위한 스킬입니다.
사용하는 경우
- ✓QGIS 프로젝트에 지도 피처를 추가하거나 새 벡터 레이어를 만들고 싶을 때.
- ✓인쇄 레이아웃을 PDF나 이미지로 내보내고 싶을 때.
- ✓명령줄에서 QGIS 처리 작업을 실행하고 싶을 때.
스킬 링크
https://github.com/HKUDS/CLI-Anything/blob/main/QGIS/agent-harness/cli_anything/qgis/skills/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 QGIS 프로젝트에 매장 위치용 포인트 레이어를 만들고, 지도 레이아웃을 PDF로 내보내 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 실제 런타임을 통해 QGIS를 실행하므로, 에이전트가 레이어를 만들고, 피처를 추가하고, 레이아웃을 구성하며, 처리 도구를 실행할 수 있습니다. 결과는 프로젝트에 저장되거나 파일로 내보내집니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
cli-anything-qgis
Use this skill when you need to inspect or modify QGIS projects from the terminal through the real QGIS runtime.
Requirements
- QGIS installed with
qgis_processonPATH - PyQGIS importable from the Python environment running the CLI
- Python 3.10+
Agent guidance
- Prefer
--jsonfor all machine-driven use. - For one-shot commands, pass
--project <path>when operating on an existing project. - Running
cli-anything-qgiswith no subcommand starts a stateful REPL. - Layout export is backed by real QGIS processing algorithms:
native:printlayouttopdfnative:printlayouttoimage
What this CLI covers
- create, open, save, and inspect
.qgs/.qgzprojects - create writable GeoPackage-backed vector layers
- add features via WKT geometry and typed
key=valueattributes - create print layouts and add map/label items
- export layouts to PDF or image
- inspect and run generic
qgis_processalgorithms - inspect session status and history
Command groups
project
new -o/--output [--title] [--crs]open PATHsave [PATH]infoset-crs CRS
layer
create-vector --name --geometry --crs [--field name:type ...]listinfo LAYERremove LAYER
feature
add --layer LAYER --wkt WKT [--attr key=value ...]list --layer LAYER [--limit N]
layout
create --name [--page-size] [--orientation]listinfo LAYOUTremove LAYOUTadd-map --layout LAYOUT --x --y --width --height [--extent xmin,ymin,xmax,ymax]add-label --layout LAYOUT --text TEXT --x --y --width --height [--font-size N]
export
presetspdf OUTPUT --layout LAYOUT [--dpi] [--force-vector] [--force-raster] [--georeference/--no-georeference] [--overwrite]image OUTPUT --layout LAYOUT [--dpi] [--overwrite]
process
listhelp ALGORITHM_IDrun ALGORITHM_ID [--param KEY=VALUE ...]
session
statushistory [--limit N]
Examples
Create a project and add a writable layer
cli-anything-qgis --json project new -o demo.qgz --title "Demo" --crs EPSG:4326
cli-anything-qgis --json --project demo.qgz layer create-vector \
--name places \
--geometry point \
--field name:string \
--field score:int
Add features and inspect them
cli-anything-qgis --json --project demo.qgz feature add \
--layer places \
--wkt "POINT(1 2)" \
--attr name=HQ \
--attr score=5
cli-anything-qgis --json --project demo.qgz feature list --layer places --limit 10
Create and export a layout
cli-anything-qgis --json --project demo.qgz layout create --name Main
cli-anything-qgis --json --project demo.qgz layout add-map --layout Main --x 10 --y 20 --width 180 --height 120
cli-anything-qgis --json --project demo.qgz layout add-label --layout Main --text "Demo map" --x 10 --y 8 --width 100 --height 10
cli-anything-qgis --json --project demo.qgz export pdf output.pdf --layout Main --overwrite
Inspect or run processing algorithms
cli-anything-qgis --json process help native:buffer
cli-anything-qgis --json --project demo.qgz process run native:buffer \
--param INPUT=/tmp/demo_data.gpkg|layername=places \
--param DISTANCE=1 \
--param SEGMENTS=8 \
--param END_CAP_STYLE=0 \
--param JOIN_STYLE=0 \
--param MITER_LIMIT=2 \
--param DISSOLVE=false \
--param OUTPUT=/tmp/buffer.geojson
REPL
cli-anything-qgis
Example interactive flow:
project new -o demo.qgz --title "Demo"
layer create-vector --name places --geometry point --field name:string
feature add --layer places --wkt "POINT(1 2)" --attr name=HQ
layout create --name Main
session status
quit
자주 묻는 질문
QGIS가 설치되어 있어야 하나요?
네. 처리 도구를 사용할 수 있도록 QGIS가 컴퓨터에 설치되어 있어야 합니다.
어떤 프로젝트 파일을 다룰 수 있나요?
.qgs와 .qgz 형식의 QGIS 프로젝트 파일을 다루며, GeoPackage 기반 레이어를 만듭니다.
기존 프로젝트 없이도 작동하나요?
네. 새 프로젝트를 만들 수 있고, 경로를 주면 기존 프로젝트와도 작동합니다.
상세 정보
작성자의 원본 설명
Stateful QGIS CLI for projects, writable layers, features, layouts, exports, and qgis_process operations using the real QGIS runtime.
repo: HKUDS/CLI-Anything
인기도
- GitHub 스타
- 58k
- 순위
- #3180
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 9. 21.
댓글
- …
이 저장소의 다른 스킬
cli-anything-3mf
58k에이전트가 3D 프린팅 파일을 검사하고 고치도록 돕습니다. 둥근 구멍 찾기, 크기 조정, 메시 수리, 두 파일 비교가 가능합니다.
cli-anything-adguardhome
58k에이전트가 네트워크 전체의 광고 차단기인 AdGuard Home을 관리하도록 돕습니다. 필터, DNS 재작성, 클라이언트, 쿼리 로그를 포함합니다.
cli-anything-anygen
58k에이전트가 AnyGen 서비스를 이용해 글로 된 프롬프트로 슬라이드, 문서, 웹사이트, 다이어그램을 만들도록 돕습니다.
cli-anything-audacity
58k에이전트가 Audacity를 이용해 명령줄에서 오디오를 편집하도록 돕습니다. 오디오 프로젝트와 트랙 관리를 포함합니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.