Community라이팅 & 에디팅github.com

Jamie-BitFlight/data-exploration

알 수 없는 구조화된 데이터 파일을 dasel v3로 탐색할 때 사용합니다. JSON, YAML, TOML, XML, CSV, HCL, INI 형식에서 스키마를 발견하고, 키를 나열하며, 중첩된 값을 찾고, 배열을 샘플링하고, 데이터 유형을 식별합니다.

data-exploration란 무엇인가요?

이 스킬은 dasel v3 명령줄 도구를 사용하여 구조화되지 않은 데이터 파일을 체계적으로 탐색하는 방법을 제공합니다. 개발자나 AI 에이전트가 JSON, YAML, TOML, XML, CSV, HCL, INI 등 다양한 형식의 파일을 처음 접했을 때, 스키마를 이해하고 필요한 값을 추출하는 일련의 단계를 안내합니다. 주요 기능으로는 최상위 키 나열, 중첩된 키 탐색, 배열 샘플링, 데이터 유형 검사, 그리고 대용량 파일을 위한 조건부 검색이 포함됩니다. dasel은 파일 확장자에서 형식을 자동 감지하며, stdin을 사용하거나 확장자가 모호한 경우 `-i` 플래그로 형식을 명시할 수 있습니다. 이 스킬은 Kubernetes 매니페스트, CI/CD 파이프라인 설정, 패키지 파일 등 모든 종류의 설정 파일이나 API 응답 데이터를 분석할 때 유용합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Jamie-BitFlight/claude_skills/tree/main/plugins/dasel/skills/data-exploration

Installed? Explore more 라이팅 & 에디팅 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

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

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

문서

Dasel v3를 사용한 데이터 탐색

<when_to_use>

다음 상황에서 이 스킬을 활성화하세요:

  • 익숙하지 않은 구조화된 데이터 파일(설정, API 응답, 데이터셋)을 탐색할 때
  • 문서를 수정하기 전에 스키마나 구조를 발견할 때
  • 중첩된 설정 구조(Kubernetes 매니페스트, CI 파이프라인, 패키지 파일)를 조사할 때
  • 큰 배열이나 깊이 중첩된 객체를 샘플링하여 내용을 이해할 때
  • 변환이나 추출 전에 데이터 유형을 식별할 때

</when_to_use>

지원 형식

Dasel은 파일 확장자에서 형식을 자동 감지합니다. stdin에서 읽거나 확장자가 모호한 경우 -i <format>으로 재정의합니다.

형식 식별자: json, yaml, toml, xml, csv, hcl, ini

범용 탐색 워크플로우

알 수 없는 구조화된 데이터 파일을 만났을 때 다음 순서를 따르세요. 각 단계는 범위를 좁힙니다.

1단계 — 형식 감지

Dasel은 파일 확장자에서 형식을 유추합니다. stdin이나 비표준 확장자의 경우 명시적으로 지정하세요:

cat mystery_file | dasel -i json 'keys($this)'

2단계 — 최상위 키

cat config.yaml | dasel -i yaml 'keys($this)'

출력: 최상위 키 이름의 배열입니다. 항상 첫 번째 탐색 명령어입니다.

3단계 — 구조 미리보기

작은 파일(설정, 매니페스트)의 경우 전체 문서를 출력합니다:

cat config.yaml | dasel -i yaml

큰 파일의 경우 4단계로 건너뜁니다.

4단계 — 중첩된 키 찾기

레벨별로 탐색합니다:

cat config.yaml | dasel -i yaml 'server'
cat config.yaml | dasel -i yaml 'keys(server)'
cat config.yaml | dasel -i yaml 'keys(server.logging)'

모든 깊이에서 재귀적으로 키 찾기:

cat config.yaml | dasel -i yaml '..keys($this)'

5단계 — 배열 샘플링

전체 배열을 로드하지 않고 처음 몇 개의 요소 미리보기:

cat data.json | dasel -i json 'items[0:3]'

단일 요소 검사:

cat data.json | dasel -i json 'items[0]'

6단계 — 유형 검사

모든 노드의 유형을 결정합니다:

cat data.json | dasel -i json 'typeOf(settings)'
cat data.json | dasel -i json 'typeOf(items[0].count)'

반환 값: "string", "array", "bool", "null", "int", "float"

7단계 — 값 추출

경로를 알면 특정 값을 추출합니다:

cat config.yaml | dasel -i yaml 'database.connection.host'
cat data.json | dasel -i json 'users[0].email'

탐색 패턴

너비 우선 탐색

루트에서 시작하여 각 레벨의 키를 더 깊이 들어가기 전에 열거합니다:

cat file.json | dasel -i json 'keys($this)'           # 레벨 0
cat file.json | dasel -i json 'keys(metadata)'         # 레벨 1
cat file.json | dasel -i json 'keys(metadata.labels)'  # 레벨 2

검색 기반 탐색 (대용량 파일)

수동으로 탐색하기에는 파일이 너무 클 경우 search()에 조건자를 사용합니다:

# 특정 키를 포함하는 모든 객체 찾기
cat data.json | dasel -i json 'search(has("email"))'

# "id"와 "name" 키를 모두 포함하는 모든 객체 찾기
cat data.json | dasel -i json 'search(has("id") && has("name"))'

# 값이 일치하는 노드 찾기
cat data.json | dasel -i json 'search($this == 42)'

요소 개수 세기

cat data.json | dasel -i json 'len(items)'
cat data.json | dasel -i json 'len(keys($this))'

고유 값 찾기

모든 배열 요소에서 필드를 추출한 후 셸에서 중복 제거:

cat data.json | dasel -i json 'items.map(category)' | dasel -i json '$this...' | sort -u

재귀 하강

모든 깊이에서 키 이름에 해당하는 모든 값 찾기:

cat data.json | dasel -i json '..name'

모든 중첩 배열의 첫 번째 요소 가져오기:

cat data.json | dasel -i json '..[0]'

형식별 레시피

형식별 상세 탐색 명령어는 형식별 레시피를 참조하세요.

참조

Individual skills in this repo

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

Jamie-BitFlight/agentskill-kaizen-meta-docs

Agentskill kaizen plugin documentation index. Load when needing to read about cross-platform notes, improvement plans, or DuckDB integration.

Jamie-BitFlight/bash-51-features

Bash 5.1 release features and improvements with practical examples. Use when working with Bash 5.1 features, epoch time variables, redirection enhancements, or when user asks about Bash 5.1 changes, new features, or version-specific capabilities.

Jamie-BitFlight/bash-52-features

Bash 5.2 release features and improvements with practical examples. Use when working with Bash 5.2 features, variable handling enhancements, readline improvements, or when user asks about Bash 5.2 changes, new features, or version-specific capabilities.

Jamie-BitFlight/bash-53-features

Bash 5.3 release features and improvements with practical examples. Use when working with Bash 5.3 features, new command substitution, GLOBSORT, loadable builtins, or when user asks about Bash 5.3 changes, new features, or version-specific capabilities.

Jamie-BitFlight/bash-development

This skill should be used when the user asks to "write a bash script", "create a shell script", "implement bash function", "parse arguments in bash", "handle errors in bash", or mentions bash development, shell scripting, script templates, or modern bash patterns.

Jamie-BitFlight/bash-lint

This skill should be used when the user asks to "lint bash script", "run shellcheck", "format shell script", "use shfmt", "fix shellcheck errors", or mentions shell script linting, formatting, code quality, or pre-commit hooks for bash.

Jamie-BitFlight/bash-logging

This skill should be used when the user asks to "add logging to bash script", "colorize output", "implement log levels", "CI/CD sections", "terminal colors in bash", or mentions logging functions, emoji output, collapsible CI sections, or shlocksmith.

Jamie-BitFlight/bash-portability

This skill should be used when the user asks about "POSIX compatibility", "portable shell scripts", "cross-shell compatibility", "bashisms", "shebang selection", or mentions writing scripts that work on different shells (bash, sh, dash, zsh) or different systems.

Jamie-BitFlight/bash-testing

This skill should be used when the user asks to "test bash script", "write shell tests", "use shunit2", "use shellspec", "create test suite for bash", or mentions unit testing, test frameworks, mocking, or test-driven development for shell scripts.

Jamie-BitFlight/brainstorming-skill

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or when users request help with ideation, marketing, and strategic planning. Explores user intent, requirements, and design before implementation using research-validated prompt patterns.

Jamie-BitFlight/clang-format

Configure clang-format code formatting. Use when: user mentions clang-format or .clang-format, analyzing code style/patterns, creating/modifying formatting config, troubleshooting formatting, brace styles/indentation/spacing/alignment/pointer alignment, or codifying conventions.

Jamie-BitFlight/commitlint

When setting up commit message validation for a project. When project has commitlint.config.js or .commitlintrc files. When configuring CI/CD to enforce commit format. When extracting commit rules for LLM prompt generation. When debugging commit message rejection errors.

Jamie-BitFlight/conventional-commits

When writing a git commit message. When task completes and changes need committing. When project uses semantic-release, commitizen, git-cliff. When choosing between feat/fix/chore/docs types. When indicating breaking changes. When generating changelogs from commit history.

Jamie-BitFlight/dasel-reference

Use when querying, modifying, or converting JSON, YAML, TOML, XML, CSV, HCL, or INI with dasel v3. Complete reference for selectors, functions, conditionals, variables, spread operator, type casting, and format-specific patterns.

Jamie-BitFlight/data-transformation

Use when modifying, converting, or transforming structured data with dasel v3 — in-place mutations, format conversion, batch operations, array manipulation, object construction, and merge patterns across JSON, YAML, TOML, XML, CSV, HCL, INI

Jamie-BitFlight/delegate

Decompose substantive work into phases, dispatch each phase to a sub-agent, and adjudicate what comes back. Use whenever a request asks for implementation, investigation, a fix, a review, or any change to files — including small ones — and whenever you are about to read source or run a diagnostic yourself instead of handing it off. Also use when a report from a sub-agent needs judging, when a phase needs re-dispatching, or when a user names one instance of a pattern. Does not apply when your own prompt begins "Your ROLE_TYPE is sub-agent." — then follow references/sub-agent-contract.md instead.

Jamie-BitFlight/enterprise-hibernate-hbm

Dasel v3 query patterns for Hibernate .hbm.xml mapping files — entity-table binding, Java property-to-column extraction, one-to-many set/list/bag relationship tracing, many-to-one foreign key discovery, batch scanning across 60+ HBM files. Use when querying Hibernate ORM class mappings, extracting schema metadata from Java persistence layer, or auditing entity-column relationships in enterprise legacy codebases.

Jamie-BitFlight/enterprise-installanywhere

Dasel v3 query patterns for InstallAnywhere .iap_xml installer definitions — use when querying action sequences, discovering variables, resolving platform conditions, navigating panels, or comparing installer variants. Files are 2.5+ MB, 65,000+ lines — too large for context reads, requires structural dasel queries.

Jamie-BitFlight/enterprise-maven-pom

Dasel v3 selector patterns for Maven POM XML files — use when querying dependency versions, filtering by groupId or scope, extracting module hierarchy from parent POMs, or detecting version conflicts across enterprise multi-module Java projects. Load this skill when working with pom.xml files using dasel.

Jamie-BitFlight/enterprise-spring-xml

Dasel v3 selectors for Spring bean factory XML — use when querying any Spring ApplicationContext XML for bean discovery, dependency wiring, JMS destination mapping, property injection extraction, or cross-bean reference tracing. Load this skill before writing dasel selectors against Spring bean XML files (applicationContext.xml, *_beans.xml, spring-*.xml).

관련 스킬