Communitygithub.com

cli-anything-qgis

상태 저장형 QGIS CLI로, 실제 QGIS 런타임을 사용하여 프로젝트, 쓰기 가능 레이어, 피처, 레이아웃, 내보내기 및 qgis_process 작업을 수행합니다.

cli-anything-qgis란 무엇인가요?

이 스킬은 터미널에서 실제 QGIS 런타임을 통해 QGIS 프로젝트를 검사하거나 수정할 수 있는 상태 저장형 CLI 도구인 cli-anything-qgis를 제공합니다. 개발자와 AI 에이전트가 프로젝트 생성, 열기, 저장, 검사(.qgs/.qgz), GeoPackage 기반 벡터 레이어 생성 및 피처 추가(WKT 지오메트리 및 타입 속성), 인쇄 레이아웃 생성 및 맵/레이블 아이템 추가, PDF 또는 이미지로 내보내기, 그리고 qgis_process 알고리즘 실행 등을 명령줄에서 직접 수행할 수 있게 해줍니다. --json 플래그를 지원하여 기계 판독 가능한 출력을 제공하며, 하위 명령 없이 실행하면 대화형 REPL 모드로 진입합니다. QGIS가 설치되어 있고 qgis_process가 PATH에 있으며 PyQGIS를 임포트할 수 있는 Python 3.10+ 환경이 필요합니다. 이 스킬은 QGIS 작업을 자동화하거나 CI/CD 파이프라인에 통합하는 데 매우 유용하며, Cursor, Claude Code, Codex 등 다양한 AI 에이전트 플랫폼과 호환됩니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-qgis

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

cli-anything-qgis은(는) 무엇을 하나요?

실제 QGIS 런타임을 통해 터미널에서 QGIS 프로젝트를 검사하거나 수정해야 할 때 이 스킬을 사용하세요.

요구 사항

  • QGIS가 설치되어 있고 qgis_process가 PATH에 있어야 함
  • CLI를 실행하는 Python 환경에서 PyQGIS를 임포트할 수 있어야 함
  • Python 3.10+

에이전트 가이드

  • 모든 기계 주도 사용에는 --json을 선호하세요.
  • 단발성 명령의 경우 기존 프로젝트에서 작업할 때 --project <경로>를 전달하세요.
  • 하위 명령 없이 cli-anything-qgis를 실행하면 상태 저장형 REPL이 시작됩니다.
  • 레이아웃 내보내기는 실제 QGIS 처리 알고리즘에 의해 지원됩니다:
    • native:printlayouttopdf
    • native:printlayouttoimage

이 CLI가 다루는 기능

  • .qgs / .qgz 프로젝트 생성, 열기, 저장 및 검사
  • GeoPackage 기반 쓰기 가능 벡터 레이어 생성
  • WKT 지오메트리 및 타입 key=value 속성을 통해 피처 추가
  • 인쇄 레이아웃 생성 및 맵/레이블 아이템 추가
  • 레이아웃을 PDF 또는 이미지로 내보내기
  • 일반 qgis_process 알고리즘 검사 및 실행
  • 세션 상태 및 기록 검사

명령 그룹

project

  • new -o/--output [--title] [--crs]
  • open PATH
  • save [PATH]
  • info
  • set-crs CRS

layer

  • create-vector --name --geometry --crs [--field name:type ...]
  • list
  • info LAYER
  • remove LAYER

feature

  • add --layer LAYER --wkt WKT [--attr key=value ...]
  • list --layer LAYER [--limit N]

layout

  • create --name [--page-size] [--orientation]
  • list
  • info LAYOUT
  • remove LAYOUT
  • add-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

  • presets
  • pdf OUTPUT --layout LAYOUT [--dpi] [--force-vector] [--force-raster] [--georeference/--no-georeference] [--overwrite]
  • image OUTPUT --layout LAYOUT [--dpi] [--overwrite]

process

  • list
  • help ALGORITHM_ID
  • run ALGORITHM_ID [--param KEY=VALUE ...]

session

  • status
  • history [--limit N]

예제

프로젝트 생성 및 쓰기 가능 레이어 추가

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

피처 추가 및 검사

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

레이아웃 생성 및 내보내기

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

처리 알고리즘 검사 또는 실행

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

대화형 흐름 예시:

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

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

관련 스킬