スキル一覧に戻る
pluginagentmarketplace

postgresql-json

by pluginagentmarketplace

PostgreSQL developer roadmap plugin with database patterns and query optimization

1🍴 0📅 2026年1月5日
GitHubで見るManusで実行

SKILL.md


name: postgresql-json description: Work with JSONB data - queries, indexing, transformations version: "3.0.0" sasmp_version: "1.3.0" bonded_agent: 05-postgresql-advanced bond_type: PRIMARY_BOND category: database difficulty: intermediate estimated_time: 2h

PostgreSQL JSON Skill

Atomic skill for JSONB operations

Overview

Production-ready patterns for JSONB queries, indexing, and transformations.

Prerequisites

  • PostgreSQL 16+
  • Understanding of JSON structure

Parameters

parameters:
  operation:
    type: string
    required: true
    enum: [query, index, transform, aggregate]
  json_path:
    type: string

Quick Reference

JSONB Operators

OperatorDescriptionExample
->Get objectdata->'user'
->>Get as textdata->>'name'
@>Containsdata @> '{"active":true}'
?Key existsdata ? 'email'

Index Patterns

CREATE INDEX idx_data ON t USING GIN(data);  -- Containment
CREATE INDEX idx_data_path ON t USING GIN(data jsonb_path_ops);  -- Faster @>
CREATE INDEX idx_status ON t ((data->>'status'));  -- Specific key

Common Operations

-- Nested update
UPDATE docs SET data = jsonb_set(data, '{user,verified}', 'true');

-- Array append
UPDATE docs SET data = jsonb_set(data, '{tags}', (data->'tags') || '"new"');

-- Aggregate
SELECT jsonb_agg(jsonb_build_object('id', id, 'name', name)) FROM users;

Troubleshooting

ErrorCauseSolution
22P02Invalid JSONValidate syntax
Slow @>No GIN indexCreate GIN index
NULL pathKey missingCheck with ?

Usage

Skill("postgresql-json")

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です