@dsh-gis/dsh-opengis-skill 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -0
- package/README.md +33 -19
- package/adaptations/brutile.md +6 -6
- package/adaptations/cesiumjs.md +6 -6
- package/adaptations/common.md +16 -13
- package/adaptations/deck-gl.md +6 -6
- package/adaptations/duckdb-spatial.md +6 -6
- package/adaptations/gdal-api.md +6 -6
- package/adaptations/gdal.md +6 -6
- package/adaptations/geolibre.md +6 -6
- package/adaptations/geometry-api-java.md +6 -6
- package/adaptations/geometry-api-net.md +6 -6
- package/adaptations/geonode.md +6 -6
- package/adaptations/geopandas.md +6 -6
- package/adaptations/geopipe-agent.md +6 -6
- package/adaptations/geoserver-cloud.md +6 -6
- package/adaptations/geoserver-rest-api.md +6 -6
- package/adaptations/geoserver.md +6 -6
- package/adaptations/geotools.md +6 -6
- package/adaptations/grass-gis.md +6 -6
- package/adaptations/jts.md +6 -6
- package/adaptations/kepler-gl.md +6 -6
- package/adaptations/leaflet.md +6 -6
- package/adaptations/mapbox-gl-js.md +6 -6
- package/adaptations/mapserver.md +6 -6
- package/adaptations/mapsui.md +6 -6
- package/adaptations/nettopologysuite.md +6 -6
- package/adaptations/opengis-all.md +7 -6
- package/adaptations/opengis-daf.md +7 -6
- package/adaptations/opengis-utils-for-java.md +6 -6
- package/adaptations/opengis-utils-for-net.md +6 -6
- package/adaptations/openlayers.md +6 -6
- package/adaptations/pdal.md +6 -6
- package/adaptations/postgis.md +6 -6
- package/adaptations/proj.md +6 -6
- package/adaptations/projnet4geoapi.md +6 -6
- package/adaptations/pyqgis.md +6 -6
- package/adaptations/qgis-process.md +6 -6
- package/adaptations/qgis-server.md +6 -6
- package/adaptations/shapely.md +6 -6
- package/adaptations/sharpmap.md +6 -6
- package/adaptations/spatialite.md +6 -6
- package/adaptations/whitebox-tools.md +6 -6
- package/assets/brutile/SKILL.md +6 -12
- package/assets/cesiumjs/SKILL.md +14 -18
- package/assets/deck-gl/SKILL.md +8 -15
- package/assets/duckdb-spatial/SKILL.md +5 -12
- package/assets/gdal/SKILL.md +5 -12
- package/assets/gdal/reference/raster-tools.md +14 -0
- package/assets/gdal/reference/vector-tools.md +5 -0
- package/assets/gdal-api/SKILL.md +6 -14
- package/assets/gdal-api/reference/raster-api.md +7 -0
- package/assets/gdal-api/reference/vector-api.md +9 -0
- package/assets/geolibre/SKILL.md +10 -17
- package/assets/geometry-api-java/SKILL.md +5 -10
- package/assets/geometry-api-net/SKILL.md +5 -11
- package/assets/geometry-api-net/reference/geometry-types.md +5 -0
- package/assets/geonode/SKILL.md +5 -12
- package/assets/geopandas/SKILL.md +5 -10
- package/assets/geopandas/reference/core-api.md +4 -0
- package/assets/geopipe-agent/SKILL.md +7 -14
- package/assets/geopipe-agent/reference/steps-reference.md +12 -0
- package/assets/geopipe-agent/reference/workflows.md +8 -0
- package/assets/geoserver/SKILL.md +5 -12
- package/assets/geoserver-cloud/SKILL.md +12 -19
- package/assets/geoserver-rest-api/SKILL.md +5 -12
- package/assets/geoserver-rest-api/reference/endpoints.md +16 -0
- package/assets/geotools/SKILL.md +5 -12
- package/assets/geotools/reference/raster-rendering.md +5 -0
- package/assets/geotools/reference/vector-io.md +7 -0
- package/assets/grass-gis/SKILL.md +8 -14
- package/assets/jts/SKILL.md +5 -12
- package/assets/jts/reference/geometry-operations.md +13 -0
- package/assets/kepler-gl/SKILL.md +9 -16
- package/assets/leaflet/SKILL.md +18 -22
- package/assets/mapbox-gl-js/SKILL.md +10 -16
- package/assets/mapserver/SKILL.md +5 -11
- package/assets/mapsui/SKILL.md +25 -16
- package/assets/nettopologysuite/SKILL.md +5 -11
- package/assets/opengis-all/SKILL.md +13 -19
- package/assets/opengis-all/reference/data-stages.md +7 -0
- package/assets/opengis-all/reference/workflow-cheatsheets.md +7 -0
- package/assets/opengis-daf/SKILL.md +5 -13
- package/assets/opengis-utils-for-java/SKILL.md +7 -11
- package/assets/opengis-utils-for-java/reference/common-tasks.md +4 -0
- package/assets/opengis-utils-for-net/SKILL.md +5 -10
- package/assets/opengis-utils-for-net/reference/code-patterns.md +4 -0
- package/assets/opengis-utils-for-net/reference/util-classes.md +10 -0
- package/assets/openlayers/SKILL.md +16 -20
- package/assets/pdal/SKILL.md +6 -12
- package/assets/postgis/SKILL.md +21 -26
- package/assets/proj/SKILL.md +5 -12
- package/assets/projnet4geoapi/SKILL.md +5 -11
- package/assets/pyqgis/SKILL.md +5 -10
- package/assets/pyqgis/reference/processing-rendering.md +6 -0
- package/assets/pyqgis/reference/vector-raster-layers.md +6 -0
- package/assets/qgis-process/SKILL.md +5 -12
- package/assets/qgis-process/reference/algorithm-cheatsheet.md +6 -0
- package/assets/qgis-server/SKILL.md +7 -13
- package/assets/shapely/SKILL.md +5 -10
- package/assets/shapely/reference/operations-reference.md +12 -0
- package/assets/sharpmap/SKILL.md +5 -11
- package/assets/spatialite/SKILL.md +7 -14
- package/assets/whitebox-tools/SKILL.md +9 -16
- package/lib/adaptations.d.ts +6 -0
- package/lib/adaptations.js +79 -4
- package/lib/catalog.d.ts +7 -1
- package/lib/catalog.js +9 -1
- package/lib/index.d.ts +9 -0
- package/lib/index.js +20 -1
- package/lib/skill-file.d.ts +12 -0
- package/lib/skill-file.js +107 -16
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +2 -2
- package/upstream.json +63 -63
package/assets/postgis/SKILL.md
CHANGED
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: postgis
|
|
3
|
-
description: "Use when extending PostgreSQL with PostGIS 3.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
- spatial
|
|
9
|
-
- geometry
|
|
10
|
-
- geography
|
|
11
|
-
- raster
|
|
12
|
-
- vector
|
|
13
|
-
- wkt
|
|
14
|
-
- wkb
|
|
3
|
+
description: "Use when extending PostgreSQL with PostGIS 3.7.0 — geometry/geography/raster types, GiST and KNN distance-operator indexes, ST_Intersects/ST_Buffer/ST_Transform/ST_AsMVT, shp2pgsql -I and raster2pgsql import, and fixing \"Operation on mixed SRID\", slow spatial joins, and invalid polygons with ST_MakeValid."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
category: gis
|
|
7
|
+
tags: "postgresql, database, sql, spatial, geometry, geography, raster, vector, wkt, wkb"
|
|
15
8
|
---
|
|
16
9
|
|
|
17
10
|
> **项目地址:** <https://github.com/postgis/postgis>
|
|
18
11
|
>
|
|
19
12
|
> **官方文档:** <https://postgis.net/docs/>
|
|
20
13
|
>
|
|
21
|
-
> **最新版本:** 3.
|
|
14
|
+
> **最新版本:** 3.7.0(2026-10-30 发布,截至 2026-11;[发布公告](https://postgis.net/2026/10/PostGIS-3.7.0/)、[3.7 手册](https://postgis.net/docs/manual-3.7/en/))
|
|
22
15
|
>
|
|
23
16
|
> **许可证:** GPL-2.0+
|
|
24
17
|
|
|
@@ -32,7 +25,7 @@ PostGIS 是基于 PostgreSQL 的开源空间数据库扩展,遵循 OGC Simple
|
|
|
32
25
|
- **坐标参考系**:内置 6000+ EPSG 投影,自动 ST_Transform
|
|
33
26
|
- **数据导入导出**:与 GDAL/ogr2ogr/shp2pgsql 无缝集成
|
|
34
27
|
|
|
35
|
-
**版本要求:**
|
|
28
|
+
**版本要求:** PostGIS 3.7 要求 PostgreSQL 14–19、GEOS ≥ 3.10、PROJ ≥ 6.1、libgmp(要启用全部扩展需 GEOS ≥ 3.15、SFCGAL ≥ 2.3);PostGIS 3.6 及更早版本仍可配 PostgreSQL 12+,升级前先确认 GEOS/PROJ 满足新下限
|
|
36
29
|
|
|
37
30
|
---
|
|
38
31
|
|
|
@@ -44,14 +37,14 @@ PostGIS 是基于 PostgreSQL 的开源空间数据库扩展,遵循 OGC Simple
|
|
|
44
37
|
# Debian/Ubuntu
|
|
45
38
|
sudo apt install postgresql-17-postgis-3 postgresql-17-postgis-3-scripts
|
|
46
39
|
|
|
47
|
-
# CentOS/RHEL
|
|
48
|
-
sudo yum install
|
|
40
|
+
# CentOS/RHEL(PGDG 仓库;包名格式 postgis<PostGIS 主版本>_<PG 主版本>)
|
|
41
|
+
sudo yum install postgis37_17
|
|
49
42
|
|
|
50
43
|
# macOS
|
|
51
44
|
brew install postgis
|
|
52
45
|
|
|
53
46
|
# Docker(推荐,标签格式 <PG 主版本>-<PostGIS 主版本>)
|
|
54
|
-
docker run --name pg -e POSTGRES_PASSWORD=pg -p 5432:5432 -d postgis/postgis:17-3.
|
|
47
|
+
docker run --name pg -e POSTGRES_PASSWORD=pg -p 5432:5432 -d postgis/postgis:17-3.7
|
|
55
48
|
```
|
|
56
49
|
|
|
57
50
|
### 启用扩展
|
|
@@ -268,21 +261,23 @@ SELECT count(*) FROM poi AS p JOIN districts AS d
|
|
|
268
261
|
|
|
269
262
|
## 常见问题
|
|
270
263
|
|
|
271
|
-
|
|
|
272
|
-
|
|
273
|
-
|
|
|
274
|
-
| `
|
|
275
|
-
|
|
|
276
|
-
|
|
|
277
|
-
|
|
|
278
|
-
| `CREATE
|
|
264
|
+
| 报错 / 现象 | 原因 | 处置 |
|
|
265
|
+
|------|------|------|
|
|
266
|
+
| 报错 `ERROR: Operation on mixed SRID geometries` | 运算两侧几何的 SRID 不一致(`geometry` 类型下 PostGIS 不做隐式转换) | 先统一 SRID:`ST_Transform(geom, 4326)`(换坐标系)或 `ST_SetSRID(geom, 4326)`(只标注不改坐标);用 `ST_SRID(geom)` 逐列核对 |
|
|
267
|
+
| 报错 `ERROR: Boundary geometry is invalid` / `Input Geometry contains invalid coordinates`(GEOS 触发的自相交多边形) | 多边形自相交、重复点或环未闭合,GEOS 精确算子在无效几何上会直接报错 | 用 `ST_IsValidReason(geom)` 定位、`ST_MakeValid(geom)` 修复后入库;长期方案是入库前校验 |
|
|
268
|
+
| 输出几何报 `transform: Failed to transform` 或 `couldn't project point` | `ST_Transform` 找不到目标 SRID,或 PROJ 缺少所需网格/参数 | 确认 `spatial_ref_sys` 中存在目标 SRID,且 PROJ 数据完整(`projinfo EPSG:<code>` 能解析);缺网格时安装 proj-data |
|
|
269
|
+
| 报错 `ERROR: type "geometry" does not exist` | 扩展没装,或装在别的 schema/数据库 | 在当前库执行 `CREATE EXTENSION postgis;`;确认 `search_path` 包含扩展所在 schema |
|
|
270
|
+
| 报错 `ERROR: could not open extension control file .../postgis.control` | PostgreSQL 版本与 PostGIS 软件包主版本不匹配 | 安装与 PostgreSQL 主版本对应的包(如 `postgis37_17` 对应 PG 17),必要时 `ALTER EXTENSION postgis UPDATE;` |
|
|
271
|
+
| 查询慢(全表扫描) | 缺 GiST 索引、几何经过函数包裹导致索引失效,或统计信息过期 | `CREATE INDEX ... USING GIST (geom)`;用 `geom && ST_MakeEnvelope(...)` 先走索引再精筛;大批量导入后 `VACUUM ANALYZE`;用 `EXPLAIN (ANALYZE, BUFFERS)` 验证 |
|
|
272
|
+
| 距离 / 面积数值明显偏大或偏小 | 在经纬度(4326)上直接 `ST_Distance`/`ST_Area`,单位是「度」 | 改用 `geography`(`geom::geography`,单位米)或先投影到米制 CRS 再计算 |
|
|
273
|
+
| 跨 180° 经线附近结果异常 | 平面几何在 ±180° 处被切开 | 用 `geography`,或先 `ST_ShiftLongitude` 把范围调整到 0–360° |
|
|
279
274
|
|
|
280
275
|
---
|
|
281
276
|
|
|
282
277
|
## AI 使用建议
|
|
283
278
|
|
|
284
279
|
- **执行环境**:命令在终端 / shell 中执行(Windows 用 `psql.exe`,或 `docker exec -i pg psql -U postgres`);psql 元命令(`\d`、`\c`)用 `psql -c "\d poi"` 单条传入,别依赖交互式会话。
|
|
285
|
-
- **先探测版本**:`psql -c "SELECT version(), PostGIS_Full_Version();"` 核对 PostgreSQL、PostGIS 3.
|
|
280
|
+
- **先探测版本**:`psql -c "SELECT version(), PostGIS_Full_Version();"` 核对 PostgreSQL、PostGIS 3.7.0 与 GEOS/PROJ;扩展缺失时先看 `SELECT * FROM pg_available_extensions WHERE name LIKE 'postgis%';`。
|
|
286
281
|
- **验证产物**:导入后别只看 `INSERT 0 n`,跑 `SELECT count(*), ST_SRID(geom), ST_IsValid(geom) FROM t GROUP BY 2,3;` 核对要素数、SRID 与无效几何;性能结论必须用 `EXPLAIN (ANALYZE, BUFFERS)` 证明索引被使用。
|
|
287
282
|
- **写操作回读**:`CREATE/ALTER`、`UpdateGeometrySRID` 或批量 `UPDATE` 后回读 `\d+ t` 与 `geometry_columns`,确认列类型与 SRID 真的落库。
|
|
288
283
|
- **安全与权限**:密码不要写进命令行或报告(用 `PGPASSWORD`/`.pgpass`/连接串环境变量);`DROP TABLE/SCHEMA`、整表改写 geom、`VACUUM FULL`、重启 PostgreSQL 前必须先向用户确认并备份。
|
package/assets/proj/SKILL.md
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: proj
|
|
3
3
|
description: "Use when transforming coordinates or inspecting CRS definitions from the command line — cs2cs, projinfo -s/-t, proj projection math, cct, EPSG lookup, datum shift with grid files, WKT/PROJJSON export, or debugging \"Cannot find proj.db\" and latitude-first axis order. PROJ 9.9.0: the OSGeo engine behind GDAL/QGIS, with the proj.db SQLite database."
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
- reprojection
|
|
9
|
-
- epsg
|
|
10
|
-
- projinfo
|
|
11
|
-
- cs2cs
|
|
12
|
-
- geodesy
|
|
13
|
-
- wkt
|
|
14
|
-
- gis
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
category: gis
|
|
7
|
+
tags: "proj, crs, coordinate-transformation, reprojection, epsg, projinfo, cs2cs, geodesy, wkt, gis"
|
|
15
8
|
---
|
|
16
9
|
|
|
17
10
|
> **项目地址:** <https://github.com/OSGeo/PROJ>
|
|
@@ -20,7 +13,7 @@ tags:
|
|
|
20
13
|
>
|
|
21
14
|
> **命令行文档:** <https://proj.org/en/stable/apps/index.html>
|
|
22
15
|
>
|
|
23
|
-
> **最新版本:** 9.9.0(截至 2026-
|
|
16
|
+
> **最新版本:** 9.9.0(截至 2026-11,[GitHub Release](https://github.com/OSGeo/PROJ/releases))
|
|
24
17
|
>
|
|
25
18
|
> **许可证:** MIT
|
|
26
19
|
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: projnet4geoapi
|
|
3
3
|
description: "Use when transforming coordinates or reading CRS definitions in .NET with ProjNet 2.1.0 (NuGet ProjNet, repo ProjNet4GeoAPI) — CoordinateSystemFactory.CreateFromWkt, CoordinateTransformationFactory.CreateFromCoordinateSystems, MathTransform.Transform, CoordinateSystemServices SRID registration. Also for 'no suitable transformation' / null from GetCoordinateSystem, EPSG codes beyond 4326 and 3857 returning null, and SharpMap projects needing the legacy ProjNet4GeoAPI 1.4.1 GeoAPI build."
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
- projection
|
|
9
|
-
- epsg
|
|
10
|
-
- wkt
|
|
11
|
-
- geospatial
|
|
12
|
-
- netstandard
|
|
13
|
-
- sharpmap
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
category: gis
|
|
7
|
+
tags: "dotnet, csharp, coordinate-systems, projection, epsg, wkt, geospatial, netstandard, sharpmap"
|
|
14
8
|
---
|
|
15
9
|
|
|
16
10
|
> **项目地址:** <https://github.com/NetTopologySuite/ProjNet4GeoAPI>
|
|
17
11
|
>
|
|
18
|
-
>
|
|
12
|
+
> **最新版本:** 2.1.0(截至 2026-11,[NuGet `ProjNet`](https://www.nuget.org/packages/ProjNet),netstandard2.0 / netstandard2.1)
|
|
19
13
|
>
|
|
20
14
|
> **NuGet(1.x,旧版):** `ProjNet4GeoAPI` 1.4.1(面向 GeoAPI 接口的项目,如 SharpMap 1.2)
|
|
21
15
|
>
|
package/assets/pyqgis/SKILL.md
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pyqgis
|
|
3
3
|
description: "Use when scripting QGIS with Python — QgsApplication standalone init, QgsVectorLayer / QgsRasterLayer loading, processing.run after Processing.initialize(), QgsGeometry / QgsExpression, QgsMapSettings rendering and QgsLayoutExporter PDF/PNG export, qgis._3d, or debugging \"import qgis.core\" failures. PyQGIS for QGIS 4.2.3 and LTR 3.44.15 (use the interpreter bundled with QGIS, not system Python)."
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
- processing
|
|
9
|
-
- vector
|
|
10
|
-
- raster
|
|
11
|
-
- rendering
|
|
12
|
-
- plugin
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
category: gis
|
|
7
|
+
tags: "python, qgis, gis, processing, vector, raster, rendering, plugin"
|
|
13
8
|
---
|
|
14
9
|
|
|
15
10
|
> **项目地址:** <https://github.com/qgis/QGIS>
|
|
@@ -18,7 +13,7 @@ tags:
|
|
|
18
13
|
>
|
|
19
14
|
> **Python API 参考:** <https://qgis.org/pyqgis/4.2/>
|
|
20
15
|
>
|
|
21
|
-
> **最新版本:** QGIS 4.2.3(截至 2026-
|
|
16
|
+
> **最新版本:** QGIS 4.2.3(截至 2026-11,[下载页](https://qgis.org/download/));LTR 3.44.15
|
|
22
17
|
>
|
|
23
18
|
> **许可证:** GPL-2.0+
|
|
24
19
|
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qgis-process
|
|
3
3
|
description: "Use when running QGIS geoprocessing headless via qgis_process — native:buffer / native:reprojectlayer / native:clip, qgis_process list / help --json / run --json, .model3 models and .py scripts, batch CI pipelines, or debugging \"Algorithm ... not found!\"; includes QT_QPA_PLATFORM=offscreen and the qgis/qgis images (stable 4.2, ltr 3.44)."
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
- raster
|
|
9
|
-
- automation
|
|
10
|
-
- batch
|
|
11
|
-
- ci-cd
|
|
12
|
-
- json
|
|
13
|
-
- workflow
|
|
14
|
-
- shell
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
category: gis
|
|
7
|
+
tags: "cli, qgis, processing, raster, automation, batch, ci-cd, json, workflow, shell"
|
|
15
8
|
---
|
|
16
9
|
|
|
17
10
|
> **项目地址:** <https://github.com/qgis/QGIS>
|
|
@@ -20,7 +13,7 @@ tags:
|
|
|
20
13
|
>
|
|
21
14
|
> **在线文档:** <https://docs.qgis.org/4.2/en/docs/user_manual/processing/standalone.html>
|
|
22
15
|
>
|
|
23
|
-
> **最新版本:** QGIS 4.2.3;3.44 LTR 最新 3.44.15(截至 2026-
|
|
16
|
+
> **最新版本:** QGIS 4.2.3;3.44 LTR 最新 3.44.15(截至 2026-11,[GitHub Releases](https://github.com/qgis/QGIS/releases)、[下载页](https://qgis.org/download/);`qgis_process` 自 QGIS 3.16 起可用)
|
|
24
17
|
>
|
|
25
18
|
> **许可证:** GPL-2.0+
|
|
26
19
|
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qgis-server
|
|
3
3
|
description: "Use when publishing QGIS projects (.qgs/.qgz) as OGC web services — WMS GetMap/GetPrint, WFS and WFS-T, WMTS, OGC API Features via qgis_mapserv.fcgi with Apache mod_fcgid, Nginx, or Docker, plus QGIS_SERVER_* tuning (MAX_THREADS, PARALLEL_RENDERING, LOG_STDERR); covers \"Service unknown or unsupported\" and MAP/GetCapabilities checks. QGIS 4.2.3 and LTR 3.44.15."
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
- wfs
|
|
9
|
-
- wmts
|
|
10
|
-
- ogc
|
|
11
|
-
- fcgi
|
|
12
|
-
- map
|
|
13
|
-
- web
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
category: gis
|
|
7
|
+
tags: "qgis, server, wms, wfs, wmts, ogc, fcgi, map, web"
|
|
14
8
|
---
|
|
15
9
|
|
|
16
10
|
> **项目地址:** <https://github.com/qgis/QGIS>
|
|
17
11
|
>
|
|
18
|
-
> **官方文档:** <https://docs.qgis.org/
|
|
12
|
+
> **官方文档:** <https://docs.qgis.org/4.2/en/docs/server_manual/>(4.2 文档挂在 `/testing/` 路径下;`/latest/` 重定向到 3.44 LTR 手册,查 LTR 行为时用 <https://docs.qgis.org/3.44/en/docs/server_manual/>)
|
|
19
13
|
>
|
|
20
|
-
> **最新版本:** 4.2.3
|
|
14
|
+
> **最新版本:** 4.2.3(官网 Latest Release);LTR 3.44.15(截至 2026-11,实测 `qgis/qgis` 镜像 tag 与 <https://qgis.org/download/>)
|
|
21
15
|
>
|
|
22
16
|
> **许可证:** GPL-2.0
|
|
23
17
|
|
|
@@ -187,7 +181,7 @@ location /qgis {
|
|
|
187
181
|
|
|
188
182
|
1. **版本对齐**:QGIS Server 与生成项目的 QGIS Desktop 尽量使用相同主版本;跨大版本打开旧项目可能因图层/表达式不兼容而报错。生产环境优先 LTR。
|
|
189
183
|
2. **优先 `.qgz`**:`.qgz` 是压缩的单文件项目,便于分发并避免路径遗漏;配合 `QGIS_PROJECT_FILE` 固定默认项目。
|
|
190
|
-
3. **日志走 stderr**:使用 `QGIS_SERVER_LOG_STDERR` 交给系统日志收集,`QGIS_SERVER_LOG_FILE`
|
|
184
|
+
3. **日志走 stderr**:使用 `QGIS_SERVER_LOG_STDERR` 交给系统日志收集,`QGIS_SERVER_LOG_FILE` 已废弃。
|
|
191
185
|
4. **并行渲染与线程**:高并发栅格出图时设置 `QGIS_SERVER_PARALLEL_RENDERING=true`,并用 `QGIS_SERVER_MAX_THREADS` 控制 CPU 占用。
|
|
192
186
|
5. **项目缓存**:多项目场景调大 `QGIS_SERVER_PROJECT_CACHE_SIZE`,减少重复加载开销。
|
|
193
187
|
6. **容错**:允许部分图层缺失时设 `QGIS_SERVER_IGNORE_BAD_LAYERS=true`,避免整份项目不可用。
|
package/assets/shapely/SKILL.md
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: shapely
|
|
3
3
|
description: "Use when doing computational geometry in Python — shapely.intersection/union/buffer/convex_hull/simplify, STRtree queries, from_wkt/to_wkt/to_geojson, make_valid, GEOS-gated ops (coverage_clean, split); also for TopologyException on self-intersecting polygons or OOP vs function buffer quad_segs mismatch. Shapely 2.2.0 binds GEOS."
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
- wkt
|
|
9
|
-
- wkb
|
|
10
|
-
- geojson
|
|
11
|
-
- spatial
|
|
12
|
-
- numpy
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
category: gis
|
|
7
|
+
tags: "python, geometry, geos, wkt, wkb, geojson, spatial, numpy"
|
|
13
8
|
---
|
|
14
9
|
|
|
15
10
|
> **项目地址:** <https://github.com/shapely/shapely>
|
|
@@ -18,7 +13,7 @@ tags:
|
|
|
18
13
|
>
|
|
19
14
|
> **PyPI:** <https://pypi.org/project/shapely/>
|
|
20
15
|
>
|
|
21
|
-
>
|
|
16
|
+
> **最新版本:** 2.2.0(截至 2026-11,[PyPI](https://pypi.org/project/shapely/);[GitHub Release](https://github.com/shapely/shapely/releases))
|
|
22
17
|
>
|
|
23
18
|
> **许可证:** BSD-3-Clause
|
|
24
19
|
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Shapely Operations API Reference
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Constructive Operations
|
|
6
|
+
- Spatial Predicates
|
|
7
|
+
- Set-Theoretic Operations
|
|
8
|
+
- Measurements
|
|
9
|
+
- STRtree Spatial Index
|
|
10
|
+
- Geometry Accessors
|
|
11
|
+
- Affine Transforms
|
|
12
|
+
- Coordinate Transforms
|
|
13
|
+
- Linear Referencing
|
|
14
|
+
|
|
3
15
|
Constructive operations, predicates, set operations, measurements, indexing and coordinate operations split from SKILL.md.
|
|
4
16
|
|
|
5
17
|
---
|
package/assets/sharpmap/SKILL.md
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sharpmap
|
|
3
3
|
description: "Use when rendering 2D maps in legacy .NET Framework 4.7.2 WinForms or ASP.NET WebForms apps with SharpMap 1.2.0 — Map.GetMap() to PNG, ShapeFile/PostGIS providers, VectorLayer with CustomTheme, TileAsyncLayer via BruTile, ProjNet4GeoAPI transforms, or debugging blank output and GDI+ handle leaks. New projects should use Mapsui."
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
- map
|
|
9
|
-
- rendering
|
|
10
|
-
- wms
|
|
11
|
-
- shapefile
|
|
12
|
-
- postgis
|
|
13
|
-
- winforms
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
category: gis
|
|
7
|
+
tags: "dotnet, csharp, 2d, map, rendering, wms, shapefile, postgis, winforms"
|
|
14
8
|
---
|
|
15
9
|
|
|
16
10
|
> **项目地址:** <https://github.com/SharpMap/SharpMap>
|
|
@@ -19,7 +13,7 @@ tags:
|
|
|
19
13
|
>
|
|
20
14
|
> **NuGet:** `SharpMap`、`SharpMap.UI`、`SharpMap.Extensions`、`SharpMap.Web`、`SharpMap.Layers.BruTile`
|
|
21
15
|
>
|
|
22
|
-
> **最新版本:** 1.2.0(截至 2026-
|
|
16
|
+
> **最新版本:** 1.2.0(截至 2026-11,[NuGet `SharpMap`](https://www.nuget.org/packages/SharpMap);发布于 2021-03,仓库未归档但维护低频)
|
|
23
17
|
>
|
|
24
18
|
> **许可证:** LGPL-2.1-or-later
|
|
25
19
|
|
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: spatialite
|
|
3
3
|
description: "Use when adding spatial SQL to a single-file SQLite database with SpatiaLite — mod_spatialite loading, InitSpatialMetaData, AddGeometryColumn, CreateSpatialIndex/MbrWithin, ST_Transform and GEOS predicates, spatialite_tool or ogr2ogr import of Shapefile, and GPKG fallback; also for 'no such module: mod_spatialite', 'no such function: InitSpatialMetaData', and 'the SPATIALITE_SECURITY environment variable' errors. libspatialite 5.1.0."
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
- gis
|
|
9
|
-
- spatial
|
|
10
|
-
- geospatial
|
|
11
|
-
- python
|
|
12
|
-
- vector
|
|
13
|
-
- gpkg
|
|
14
|
-
- command-line
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
category: gis
|
|
7
|
+
tags: "spatialite, sqlite, sql, gis, spatial, geospatial, python, vector, gpkg, command-line"
|
|
15
8
|
---
|
|
16
9
|
|
|
17
10
|
> **项目地址:** <https://www.gaia-gis.it/fossil/libspatialite/index>
|
|
18
11
|
>
|
|
19
12
|
> **官方文档:** <https://www.gaia-gis.it/gaia-sins/spatialite-sql-latest.html>
|
|
20
13
|
>
|
|
21
|
-
>
|
|
14
|
+
> **最新版本:** libspatialite 5.1.0(2023-08-04,[源码目录](https://www.gaia-gis.it/gaia-sins/libspatialite-sources/));spatialite-tools 5.1.0a(2023-08-13,[源码目录](https://www.gaia-gis.it/gaia-sins/spatialite-tools-sources/)),截至 2026-11 仍为最新
|
|
22
15
|
>
|
|
23
16
|
> **安装包:** Debian/Ubuntu `libsqlite3-mod-spatialite` 5.1.0-3、`spatialite-bin` 5.1.0a-2;conda-forge `libspatialite` 5.1.0
|
|
24
17
|
>
|
|
@@ -70,8 +63,8 @@ conda-forge 的 `libspatialite` 为 5.1.0,Windows / macOS / Linux 均有构建
|
|
|
70
63
|
### 方式四:源码编译
|
|
71
64
|
|
|
72
65
|
```bash
|
|
73
|
-
curl -LO https://www.gaia-gis.it/gaia-sins/libspatialite-5.1.0
|
|
74
|
-
tar xzf libspatialite-5.1.0
|
|
66
|
+
curl -LO https://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-5.1.0.tar.gz
|
|
67
|
+
tar xzf libspatialite-5.1.0.tar.gz
|
|
75
68
|
cd libspatialite-5.1.0
|
|
76
69
|
./configure --disable-rttopo # 按需启用 GEOS/PROJ/RTTOPO 等依赖
|
|
77
70
|
make -j"$(nproc)"
|
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: whitebox-tools
|
|
3
3
|
description: "Use when doing advanced raster, terrain or LiDAR geoprocessing with WhiteboxTools v2.4.0 — whitebox_tools --run=Slope/FillDepressions/BreachDepressions/FlowAccumulationFullWorkflow/Watershed/ExtractStreams, lidar_* tools for LAS point clouds, or the whitebox (whitebox-python 2.3.6) WhiteboxTools wrapper in Python. Also for 'whitebox_tools: command not found', mismatched Python frontend versions, and missing DEM/flow-accumulation intermediate outputs."
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
- hydrology
|
|
9
|
-
- lidar
|
|
10
|
-
- dem
|
|
11
|
-
- command-line
|
|
12
|
-
- python
|
|
13
|
-
- rust
|
|
14
|
-
- geoprocessing
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
category: gis
|
|
7
|
+
tags: "geospatial, raster, terrain-analysis, hydrology, lidar, dem, command-line, python, rust, geoprocessing"
|
|
15
8
|
---
|
|
16
9
|
|
|
17
10
|
> **项目地址:** <https://github.com/jblindsay/whitebox-tools>
|
|
18
11
|
>
|
|
19
|
-
> **官方文档:**
|
|
12
|
+
> **官方文档:** 用户手册 <https://jblindsay.github.io/wbt_book/intro.html>(GHRG 手册站镜像;上游 README 里的 `www.whiteboxgeo.com/manual/wbt_book/preface.html` 实测 404,改用本地址)
|
|
20
13
|
>
|
|
21
|
-
> **最新版本:** 2.4.0
|
|
14
|
+
> **最新版本:** 2.4.0(截至 2026-11,[GitHub Release](https://github.com/jblindsay/whitebox-tools/releases);conda-forge `whitebox_tools` 亦为 2.4.0)
|
|
22
15
|
>
|
|
23
16
|
> **PyPI 前端:** `whitebox` 2.3.6(whitebox-python 封装,仅负责下载与调用二进制,版本号落后于核心库)
|
|
24
17
|
>
|
|
@@ -244,7 +237,7 @@ wbt.watershed(d8_pntr="flow_pntr.tif", pour_pts="pour_pts_snapped.shp", output="
|
|
|
244
237
|
|
|
245
238
|
## AI 使用建议
|
|
246
239
|
|
|
247
|
-
- **执行环境**:`python build.py` 编译耗时可达数分钟,放后台任务;`pip install whitebox` 首次调用会联网下载二进制,离线环境需先手动放置 WBT
|
|
240
|
+
- **执行环境**:`python build.py` 编译耗时可达数分钟,放后台任务;`pip install whitebox` 首次调用会联网下载二进制,离线环境需先手动放置 WBT。命令行优先用预编译二进制([GitHub Releases](https://github.com/jblindsay/whitebox-tools/releases);`whiteboxgeo.com` 的下载页已 404,以 Releases 为准),源码编译只作无二进制平台的兜底。
|
|
248
241
|
- **先探测版本**:`whitebox_tools --version` 确认核心版本(本文基准 2.4.0);`python -c "import whitebox; print(whitebox.__version__)"` 确认前端(2.3.6)。两者不一致时以二进制为准并明确告知用户。
|
|
249
242
|
- **验证产物**:用 `ls -l` 检查输出文件是否生成,再用 GDAL(`gdalinfo` / `python -c "import rasterio..."`)读取数值范围做断言;只看命令退出码不足以证明分析正确。
|
|
250
243
|
- **失败信号**:无输出且无报错几乎都是工作目录或路径问题;参数被忽略多为参数名拼错,用 `--toolparameters` 核对。
|
|
@@ -261,8 +254,8 @@ wbt.watershed(d8_pntr="flow_pntr.tif", pour_pts="pour_pts_snapped.shp", output="
|
|
|
261
254
|
|
|
262
255
|
## 参考资源
|
|
263
256
|
|
|
264
|
-
-
|
|
265
|
-
-
|
|
257
|
+
- 用户手册:<https://jblindsay.github.io/wbt_book/intro.html>(含全部工具的参数与示例)
|
|
258
|
+
- 仓库 README 与 `UserManual.txt`:<https://github.com/jblindsay/whitebox-tools>(README 内指向的 `whiteboxgeo.com` 手册地址已失效,以上面的镜像为准)
|
|
266
259
|
- 源码与 Issue:<https://github.com/jblindsay/whitebox-tools>
|
|
267
260
|
- 后继项目:<https://github.com/jblindsay/whitebox_next_gen>
|
|
268
261
|
- Python 封装:<https://github.com/opengeos/whitebox-python>
|
package/lib/adaptations.d.ts
CHANGED
|
@@ -16,6 +16,12 @@ export declare const SKILL_SEPARATOR: string;
|
|
|
16
16
|
/** Labels every per-skill guidance must keep, in this order. */
|
|
17
17
|
export declare const REQUIRED_LABELS: readonly string[];
|
|
18
18
|
|
|
19
|
+
/** DeepSeek Harness tools the guidance may name, used to prove harness specificity. */
|
|
20
|
+
export declare const DSH_TOOLS: readonly string[];
|
|
21
|
+
|
|
22
|
+
/** List the distinct DeepSeek Harness tool names cited in backticks, in citation order. */
|
|
23
|
+
export declare function citedTools(text: string): string[];
|
|
24
|
+
|
|
19
25
|
/** Build the path of one per-skill adaptation file. */
|
|
20
26
|
export declare function adaptationFile(root: string, name: string): string;
|
|
21
27
|
|
package/lib/adaptations.js
CHANGED
|
@@ -38,11 +38,52 @@ export const SKILL_SEPARATOR = "\n\n---\n\n";
|
|
|
38
38
|
/** Labels every per-skill guidance must keep, in this order. */
|
|
39
39
|
export const REQUIRED_LABELS = ["加载与引用", "执行环境", "先探测版本", "验证产物", "风险与权限"];
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* DeepSeek Harness tools and primitives the guidance may name. Per-skill files
|
|
43
|
+
* must cite SKILL_MIN_TOOLS distinct names and the shared file COMMON_MIN_TOOLS,
|
|
44
|
+
* which keeps the adaptation layer about *this* harness instead of repeating
|
|
45
|
+
* tool-agnostic advice that the upstream body already carries.
|
|
46
|
+
*/
|
|
47
|
+
export const DSH_TOOLS = [
|
|
48
|
+
"skill",
|
|
49
|
+
"ops_bash",
|
|
50
|
+
"pwsh",
|
|
51
|
+
"run_code",
|
|
52
|
+
"read",
|
|
53
|
+
"grep",
|
|
54
|
+
"glob",
|
|
55
|
+
"write",
|
|
56
|
+
"edit",
|
|
57
|
+
"read_image",
|
|
58
|
+
"present",
|
|
59
|
+
"todo_write",
|
|
60
|
+
"subagent",
|
|
61
|
+
"ask_user_question",
|
|
62
|
+
"job_output",
|
|
63
|
+
"job_kill",
|
|
64
|
+
"web_fetch",
|
|
65
|
+
"web_search",
|
|
66
|
+
"working_directory",
|
|
67
|
+
"load_workspace_dependencies"
|
|
68
|
+
];
|
|
69
|
+
|
|
70
|
+
/** Minimum distinct DSH tool names one per-skill guidance must cite. */
|
|
71
|
+
const SKILL_MIN_TOOLS = 2;
|
|
72
|
+
|
|
73
|
+
/** Minimum distinct DSH tool names the shared guidance must cite. */
|
|
74
|
+
const COMMON_MIN_TOOLS = 6;
|
|
75
|
+
|
|
41
76
|
/** Minimum bullets in the shared guidance. */
|
|
42
|
-
const COMMON_MIN_BULLETS =
|
|
77
|
+
const COMMON_MIN_BULLETS = 12;
|
|
78
|
+
|
|
79
|
+
/** Minimum characters in the shared guidance. */
|
|
80
|
+
const COMMON_MIN_CHARACTERS = 1800;
|
|
81
|
+
|
|
82
|
+
/** Maximum characters in the shared guidance. */
|
|
83
|
+
const COMMON_MAX_CHARACTERS = 9000;
|
|
43
84
|
|
|
44
85
|
/** Minimum characters in one per-skill guidance file. */
|
|
45
|
-
const SKILL_MIN_CHARACTERS =
|
|
86
|
+
const SKILL_MIN_CHARACTERS = 900;
|
|
46
87
|
|
|
47
88
|
/** Maximum characters in one per-skill guidance file. */
|
|
48
89
|
const SKILL_MAX_CHARACTERS = 4000;
|
|
@@ -185,6 +226,24 @@ export function composeSkillContent(base, adaptation, common) {
|
|
|
185
226
|
return base.trimEnd() + SKILL_SEPARATOR + adaptation.trim() + "\n\n" + common.trim() + "\n";
|
|
186
227
|
}
|
|
187
228
|
|
|
229
|
+
/**
|
|
230
|
+
* List the distinct DeepSeek Harness tool names cited in backticks.
|
|
231
|
+
*
|
|
232
|
+
* Only the identifiers declared in DSH_TOOLS count, so prose that happens to
|
|
233
|
+
* mention "read a file" does not satisfy the harness-specificity requirement.
|
|
234
|
+
*
|
|
235
|
+
* @param text - the normalized adaptation text.
|
|
236
|
+
* @returns the distinct tool names found, in first-citation order.
|
|
237
|
+
*/
|
|
238
|
+
export function citedTools(text) {
|
|
239
|
+
const found = [];
|
|
240
|
+
for (const match of text.matchAll(/`([a-z][a-z0-9_]*)`/gu)) {
|
|
241
|
+
const name = match[1];
|
|
242
|
+
if (DSH_TOOLS.includes(name) && !found.includes(name)) found.push(name);
|
|
243
|
+
}
|
|
244
|
+
return found;
|
|
245
|
+
}
|
|
246
|
+
|
|
188
247
|
/**
|
|
189
248
|
* Report every problem with one per-skill adaptation file.
|
|
190
249
|
*
|
|
@@ -206,10 +265,23 @@ export function adaptationProblems(name, text) {
|
|
|
206
265
|
if (text.length > SKILL_MAX_CHARACTERS) problems.push(label + ": " + text.length + " characters exceeds the " + SKILL_MAX_CHARACTERS + "-character budget");
|
|
207
266
|
const bullets = text.split("\n").filter((line) => line.startsWith("- **"));
|
|
208
267
|
if (bullets.length < REQUIRED_LABELS.length) problems.push(label + ": needs at least " + REQUIRED_LABELS.length + ' bullets of the form "- **label**:…"');
|
|
268
|
+
const positions = [];
|
|
209
269
|
for (const required of REQUIRED_LABELS) {
|
|
210
|
-
|
|
270
|
+
const index = text.indexOf("- **" + required + "**");
|
|
271
|
+
if (index === -1) problems.push(label + ': missing the "' + required + '" bullet');
|
|
272
|
+
else positions.push(index);
|
|
273
|
+
}
|
|
274
|
+
for (let index = 1; index < positions.length; index += 1) {
|
|
275
|
+
if (positions[index] < positions[index - 1]) {
|
|
276
|
+
problems.push(label + ": required bullets must keep the order " + REQUIRED_LABELS.join(" → "));
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
211
279
|
}
|
|
212
280
|
if (!/`[^`]+`/u.test(text)) problems.push(label + ": must name at least one concrete command or tool in backticks");
|
|
281
|
+
const tools = citedTools(text);
|
|
282
|
+
if (tools.length < SKILL_MIN_TOOLS) {
|
|
283
|
+
problems.push(label + ": cites " + tools.length + " DeepSeek Harness tool(s), needs at least " + SKILL_MIN_TOOLS + " (one of " + DSH_TOOLS.slice(0, 6).join("/") + "/…)");
|
|
284
|
+
}
|
|
213
285
|
if (UNFINISHED.test(text)) problems.push(label + ": still contains an unfinished marker (TODO/FIXME/TBD/待补充/占位)");
|
|
214
286
|
return problems;
|
|
215
287
|
}
|
|
@@ -226,9 +298,12 @@ export function commonProblems(text) {
|
|
|
226
298
|
if (text.includes("\r")) problems.push(label + ": contains CR bytes; adaptations must use LF");
|
|
227
299
|
if (!text.startsWith(COMMON_HEADING)) problems.push(label + ': must start with "' + COMMON_HEADING + '"');
|
|
228
300
|
if (/^# /mu.test(text)) problems.push(label + ": must not carry a top-level heading");
|
|
229
|
-
if (text.length <
|
|
301
|
+
if (text.length < COMMON_MIN_CHARACTERS) problems.push(label + ": " + text.length + " characters is too short for the shared guidance (minimum " + COMMON_MIN_CHARACTERS + ")");
|
|
302
|
+
if (text.length > COMMON_MAX_CHARACTERS) problems.push(label + ": " + text.length + " characters exceeds the " + COMMON_MAX_CHARACTERS + "-character budget");
|
|
230
303
|
const bullets = text.split("\n").filter((line) => line.startsWith("- **"));
|
|
231
304
|
if (bullets.length < COMMON_MIN_BULLETS) problems.push(label + ": needs at least " + COMMON_MIN_BULLETS + ' bullets of the form "- **label**:…"');
|
|
305
|
+
const tools = citedTools(text);
|
|
306
|
+
if (tools.length < COMMON_MIN_TOOLS) problems.push(label + ": cites " + tools.length + " DeepSeek Harness tool(s), needs at least " + COMMON_MIN_TOOLS);
|
|
232
307
|
if (UNFINISHED.test(text)) problems.push(label + ": still contains an unfinished marker (TODO/FIXME/TBD/待补充/占位)");
|
|
233
308
|
return problems;
|
|
234
309
|
}
|
package/lib/catalog.d.ts
CHANGED
|
@@ -4,6 +4,12 @@ export interface SkillEntry {
|
|
|
4
4
|
name: string;
|
|
5
5
|
/** Required routing description. */
|
|
6
6
|
description: string;
|
|
7
|
+
/** SPDX-style license declared by the frontmatter, when present. */
|
|
8
|
+
license?: string;
|
|
9
|
+
/** Nested "metadata" block: category plus the parsed tag list. */
|
|
10
|
+
metadata: { category?: string; tags: string[] };
|
|
11
|
+
/** Top-level frontmatter fields in source order. */
|
|
12
|
+
frontmatterFields: string[];
|
|
7
13
|
/** Absolute skill directory. */
|
|
8
14
|
directory: string;
|
|
9
15
|
/** Absolute path to SKILL.md. */
|
|
@@ -16,7 +22,7 @@ export declare const SKILL_FILE: "SKILL.md";
|
|
|
16
22
|
/** Read one skill directory, or undefined when it has no SKILL.md. */
|
|
17
23
|
export declare function readSkillEntry(directory: string, expectedName?: string): SkillEntry | undefined;
|
|
18
24
|
|
|
19
|
-
/** Read every skill directory under one asset root
|
|
25
|
+
/** Read every skill directory under one asset root. */
|
|
20
26
|
export declare function readSkillCatalog(assetRoot: string): SkillEntry[];
|
|
21
27
|
|
|
22
28
|
/** Render one skill directory as a registry resource base. */
|
package/lib/catalog.js
CHANGED
|
@@ -40,7 +40,15 @@ export function readSkillEntry(directory, expectedName) {
|
|
|
40
40
|
if (expectedName !== undefined && parsed.name !== expectedName) {
|
|
41
41
|
throw new Error(path + ' declares "' + parsed.name + '" but its directory is "' + expectedName + '"');
|
|
42
42
|
}
|
|
43
|
-
return {
|
|
43
|
+
return {
|
|
44
|
+
name: parsed.name,
|
|
45
|
+
description: parsed.description,
|
|
46
|
+
license: parsed.license,
|
|
47
|
+
metadata: parsed.metadata,
|
|
48
|
+
frontmatterFields: parsed.frontmatterFields,
|
|
49
|
+
directory,
|
|
50
|
+
path
|
|
51
|
+
};
|
|
44
52
|
}
|
|
45
53
|
|
|
46
54
|
/**
|