SkillsGrove
SkillsGrove/생산성/jerrywang121/doc3gpp/doc3gpp

doc3gpp

설치

$npx skills add https://github.com/jerrywang121/doc3gpp --skill doc3gpp
$git clone --depth 1 https://github.com/jerrywang121/doc3gpp.git /tmp/doc3gpp && mkdir -p ~/.claude/skills && cp -r /tmp/doc3gpp/src/doc3gpp/data/skills/doc3gpp ~/.claude/skills/doc3gpp
이 Agent Skill을 설치해 주세요: https://github.com/jerrywang121/doc3gpp/tree/e62f7acfa08b1cebb3d163c8186670d3b9d2e4d5/src/doc3gpp/data/skills/doc3gpp — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MITUse when querying or refreshing 3GPP meetings, TDocs, specifications, specification documents, RAN5 testcases, or public ETSI LISTSERV archives through the doc3gpp MCP server.
아래 SKILL.md는 jerrywang121/doc3gpp(커밋 e62f7ac)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 jerry wang. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

Using doc3gpp MCP

doc3gpp exposes a local 3GPP database through MCP. Use read tools to inspect cached data. Queue sync or parse jobs when data is missing or stale. Do not treat a queued job as completed work.

Legacy Office dependencies

On the machine running the doc3gpp server, install the CLI with the extraction extra (for example, uv tool install --reinstall 'doc3gpp[cli,extract]'; include any other extras you want to retain). This enables Word and PowerPoint extraction. Parsing legacy .doc also needs LibreOffice Writer; parsing .ppt needs LibreOffice Impress. Modern .docx and .pptx do not need LibreOffice.

  • Linux (Debian/Ubuntu): run sudo apt update and sudo apt install libreoffice-writer libreoffice-impress; verify with command -v soffice or command -v libreoffice. Other distributions may use different package names.
  • Windows: install Writer and Impress using the official LibreOffice installer. Add its program directory (normally C:\Program Files\LibreOffice\program) to the user or system Path, open a new PowerShell window, and verify with Get-Command soffice.exe. For the current session only, use $env:Path += ";C:\Program Files\LibreOffice\program" before starting doc3gpp. Adjust the path for the actual installation and restart an already-running server to inherit it.

3GPP context for document searches

Groups, specifications, and work items

The 3GPP structure is TSG -> working group (WG) -> specifications. Technical Specification Groups (TSGs) include RAN, SA, and CT. Working groups (WGs) are the primary operational units within TSGs. They handle the detailed technical work and produce specifications, reports, and TDocs for their respective areas. This tool use combined identifiers for TSGs+WGs for document searches, such as R5 for RAN WG5, C1 for CT WG1, etc.

Use list_tsgs({}) to discover groups. Use get_tsg({"short_name":"R5"}) for RAN5 details and recent meetings. The tool's TSG identifiers also represent WGs, such as R5 and C1. Use list_specs({"tsg":"R5"}) to find specifications under that WG.

Technical work and associated TDocs relate to one or more Work Items (WIs) or Study Items (SIs). A WI or SI can span multiple WGs, with one main WG owner. Use list_wis with tsg, name, acronym, or release to find WI/SI records. For example, use list_wis({"name":"%MIMO%","release":"Rel-18"}). Check returned ownership and scope before restricting searches to one WG. Use returned WI/SI identifiers to connect specifications, meetings, and TDocs. Do not assume administrative TDocs contain WI/SI metadata.

Meetings, TDocs, CRs

WGs generally hold quarterly meetings, with TDocs submitted for each meeting. Some WGs also hold a bis meeting between quarterly meetings. Check list_meetings and get_meeting for actual dates and FTP locations.

TDocs are contributions submitted to a WG meeting. There are many types of TDocs, including discussion, LS (liaison statement), WI status reports, CR (change request), etc.

Each TDoc is identified by a unique document number, in the format WG-YYNNNNN, where WG is the working group acronym, YY is the last two digits of the year, and NNNNN is a 6-7 digit sequential number. e.g R1-23012345, S3-2301234. TSG Plenary packages have the form RP-, SP-, or CP- depending on the TSG, as mentioned later in the text.

TDoc generally has life-cycle:

draft -> published [●available] -> revision -> revision published [●available] (on TDoc ID)
                        |                                               |
                        |                                               v
                        `------> [ ✔agreed | ✔noted | ➜postpone| ✘rejected | ✘withdraw ]

All published TDocs are available on 3GPP FTP website. A TDoc's draft and revision files may or may not be publicly available.

Specification Versions

A Change Request (CR) TDoc proposes changes to one specification at a specific release and version. e.g. v18.10.0 for Rel-18, main version 10, minor version 0. WG-agreed CRs form packages for approval at the quarterly TSG plenary. Packages group CRs by specification, release/version, and WI.

Specification main versions advance after the meeting cycle incorporates approved plenary packages. e.g. v18.1.0 -> v18.2.0. The minor version increments for minor correction after the meeting, e.g. agreed CRs missed during implementation, or editorial changes. A new release of a spec are created after incorporated a CR associated with a WI of later release. A spec maintains multiple releases in parallel, with each release advancing its own set of main and minor versions.

Exception is RAN5 test specs, where each of their testcase has it own release applicability. The spec release advances when testcases of new release feature are incorporated. Old releases of the same spec become obsolete. Check stored spec versions and their associated CRs rather than assuming every meeting changes every specification.

RAN5 TTCN meetings

The yearly RAN5 TTCN email meeting spans approximately week#50 of the previous year through week#50 of its named year. TTCN CR TDocs target a test suite and a specific TTCN release, identified as YYwk##. This release is distinct from the 3GPP specification release and version. TTCN test suites release normally are updated two to three weeks after a quarterly RAN5 meeting. RAN5 TTCN Workshops meeting discuss TTCN test models, typically four to six times per year. Search email meetings and workshops separately from regular RAN5 meetings.

RAN5 TTCN CR TDoc has prefix R5s, e,g, R5s2301234. A TTCN CR noramlly have review (MCC160Comment), and may have support documents (e.g. draft prose CR). Both review and support docs are published on 3GPP ftp site, associated to the original TDoc ID. RAN5 TTCN Workshop TDocs have prefix R5w, e.g, R5w2301234.

LISTSERV email list

The 3GPP uses ETSI LISTSERV public email list for offline communication. Especially during meeting periods (a couple of weeks before, during, and after a meeting), the LISTSERV list is used for annoucing TDoc revisions, merging, or direct change discussions.

Many list IDs indicate which TSG or WG they belong to, e.g.: 3GPP_TSG_RAN for RAN planery (RP); 3GPP_TSG_RAN_WG5 for RAN5 (R5); 3GPP_TSG_RAN_WG5_RF and 3GPP_TSG_RAN_WG5_SIG for RF and singalling sub-meeting groups. 3GPP_TSG_RAN_WG5_SIG is also used for TTCN email meeting.

The LISTSERV list archive is a great source of information for tracing the discussions and reasonings behind how the TDoc were formed.

Install and Setup MCP

For instructions on installing the doc3gpp and configuring MCP, see the Agent Skill and MCP section in the doc3gpp GitHub README.

Run jobs

The job queue is single-process: concurrent HTTP or stdio workers sharing a database can interfere with job ownership and recovery.

The MCP tool names below are literal. The JSON objects are tool arguments, not HTTP request bodies.

Read tools return one text item that contains JSON. The get_tdoc_content tool instead returns the content itself, and get_skill({}) returns this complete skill as raw Markdown including its frontmatter. Parse JSON before using IDs, versions, or links.

sync, parse, and index tools return {job_id, status, message, links}; Poll get_job({"job_id":"..."}) until status is succeeded, failed, or cancelled. Inspect result, error, and log_tail. A queued or running job does not prove that rows are available. If a job fails, report the error. Do not present old cached data as fresh.

Workflow by resource

Meeting calendar

  1. Use list_meetings with tsg, name, or year to find existing rows.
  2. Use get_meeting with a numeric meeting_id for details.
  3. Use sync_meetings({"tsg":"R5"}) to fetch and parse that TSG's calendar.
  4. List the meetings again after synchronization.
  5. Use get_meeting to retrieve the meeting ID and FTP URL.

There is no separate meeting-parse tool.

Meeting TDocs

  1. Use list_tdocs with filters such as meeting_id, tdoc_id, title, or spec.
  2. Use get_tdoc with tdoc_id or ftp_url for details.
  3. Use sync_tdocs({"meeting_id":260013}) after the meeting exists. Alternatively, use sync_tdocs_by_meeting({"meeting":"RAN5#106"}).
  4. Use parse_tdocs({"filter":{"tdoc_id":"R5-260013"}}) for document extraction. For a direct 3GPP FTP URL, use parse_tdoc_url({"url":"https://www.3gpp.org/ftp/..."}).
  5. Use get_tdoc for cover/extract metadata.
  6. Use get_tdoc_content({"tdoc_id":"R5-260013"}) for cached markdown, if available.
  7. Use search_tdoc for indexed content and filters.

get_tdoc_content returns full Markdown without pagination; a large response may exceed the MCP client's limits. Select one ZIP member with source_file, use search_tdoc for snippets, or save it locally with doc3gpp tdoc show --tdoc <id> --format raw --source-file '<path>' --output annex.md. TDoc parsing skips the entire source if it exceeds [tdoc_parse] max_tdoc_size_kb (default 1000 KiB) or the supported ZIP members exceed max_uncompressed_size_kb combined (default 100 MiB); inspect get_job and raise the limits before retrying. An individual annex conversion failure instead appears in skipped_sources in get_tdoc_content JSON and leaves extraction incomplete.

TDoc revisions, reviews, and supporting ZIPs

parse_tdocs (or doc3gpp tdoc parse --tdoc <id>) parses only the main ZIP in tdocs.ftp_url. It does not automatically parse separate TDoc revisions, MCC review or supporting ZIPs. Examples include MCC160 review comments and supporting prose draft CRs, and TDoc draft or revisions.

TTCN MCC reviews and supporting prose draft CRs can reside in its review subfolder. Registered associated ZIP, Word, and presentation files appear in get_tdoc details or the CLI tdoc show Files section. Use returned URLs rather than constructing filenames from these folder conventions.

To parse and inspect a separate revision, review, or supporting ZIP:

  1. Call get_tdoc({"tdoc_id":"R5s261234"}) (or run doc3gpp tdoc show --tdoc R5s261234).
  2. Find the target ZIP entry in files (type: review, support, revision, or draft).
  3. Copy its ftp_url and build the canonical https://www.3gpp.org/ftp/<ftp_url> URL when needed.
  4. Parse that exact URL with parse_tdoc_url:
    parse_tdoc_url  {"url":"https://www.3gpp.org/ftp/.../Review/R5s261234_MCC160Comments.zip"}
    get_job         {"job_id":"<parse-url job_id>"}  # poll until terminal
    
    CLI equivalent:
    doc3gpp tdoc parse --from-url \
      'https://www.3gpp.org/ftp/.../Review/R5s261234_MCC160Comments.zip'
    
  5. Replace the example URL with the actual URL from get_tdoc (files[].ftp_url).
  6. Inspect the extracted snapshot by URL, not by tdoc_id:
    • Metadata and TTCN change details (including mcc160_comment): get_tdoc({"ftp_url":"<review-or-support-url>"}) (or doc3gpp tdoc show --ftp-url <review-or-support-url>).
    • Extracted markdown content: get_tdoc_content({"ftp_url":"<review-or-support-url>"}).

Parsing requires a supported, recognizable document inside the ZIP. Not every supporting ZIP is parseable. When the TDoc exists in the database, a successful 3GPP-URL parse is stored under that attachment ZIP's ftp_url, separate from the main TDoc extraction.

Specifications

  1. Use list_specs with tsg, spec_id, title, or parsed.
  2. Use get_spec with a dotted spec_id.
  3. Use sync_specs({"tsg":"R5"}) or sync_specs({"spec_id":"38.331"}) with exactly one selector.
  4. Paginate versions with limit/offset when necessary.

The force parameter bypasses the sync interval. The per_version_details parameter fetches extra PDF/CR-list details. The get_spec response contains versions, release markers, ZIP URLs, and per-version parsed state.

Specification documents

  1. Use get_spec to identify a version with a ZIP URL.
  2. Use parse_spec_docs({"spec_id":"38.331","version":"18.5.0"}) to download if necessary and parse one specification. Omit version to resolve a suitable stored version. Optionally, constrain that selection with release.
  3. Check that release numbers align when you supply both release and version, for example Rel-18 with 18.5.0.
  4. Use get_spec_toc({"spec_id":"38.331","version":"18.5.0"}) for the TOC.
  5. Use search_spec_docs with spec_id, version, text or semantic, sections, and tables as needed.
  6. Use '%' wildcards to match section or table titles.
  7. Append '%' to section or table numbers to match subsections or subtables. Examples include "sections":"5.3.2%" and "tables":"6.1.1.2.3-%".

The get_spec_toc tool requires prior parsing of the exact (spec_id, version). The force parameter repeats the download and parsing.

Specification ZIP annexes and supporting files

The ZIP for a specification version can contain multiple files, including annexes and presentations. get_spec({"spec_id":"38.331"}) returns zip_files on each version: the ordered outer-ZIP member paths, preserving duplicates and all file extensions. null means the inventory is unknown; [] means the ZIP was inspected and contains no files. The inventory is collected during an actual spec-document parse, not spec sync, and is distinct from parsed content.

Spec-document parsing converts .docx, .doc, .pptx, and .ppt ZIP members into searchable chunks. Word files contribute TOC entries; presentations do not contribute TOC entries or section/table metadata. Presentation extraction is text only: it does not interpret images, charts, or OCR. Other ZIP members, including PDFs, spreadsheets, images, and nested ZIPs, can appear in the inventory but are not supported for parsing or searching. The MCP tools do not return those original attachments; use the version's ZIP URL if the original files are needed. Use the legacy Office dependencies above for parsing .doc and .ppt.

For a complete presentation annex, copy its exact path from the selected version's zip_files and call:

get_spec_doc_content {"spec_id":"38.331","version":"18.5.0","source_file":"<exact ZIP member path>.pptx"}

The response is JSON with spec_id, version, source_file, and full markdown. This SQL-only read does not download or parse; a missing presentation requires a successful parse of that version. get_spec_doc_content supports presentations only, not Word or arbitrary attachments; use get_spec_toc and search_spec_docs to find parsed Word text. Search returns chunks, not necessarily a complete source file.

RAN5 testcases

RAN5 defines testcases for device conformance, and maintains (by MCCTF160) testcase implementation in TTCN testsuites, authorises testcase verification status.

  1. Use list_testcases with testcase (ID pattern), title, spec, group, status (TTCN), or gcf_status (GCF/PTCRB).
  2. Use sync_testcases({}) to fetch and parse the latest RAN5 status snapshot in one job.
  3. Use {"force":true} to repeat download and parsing for a previously recorded snapshot.
  4. Use get_testcase({"testcase_id":"<id>"}) to retrieve all stored groups.
  5. Pass group to retrieve one group.

There is no separate testcase parse tool. Each result contains nested statuses entries with path, gcf_ptcrb, and ttcn_status.

ETSI LISTSERV archives

LISTSERV list contains public email archive messages.

  1. Use listserv_list to discover known 3GPP list IDs, and their mapping TSG WG.
  2. Use listserv_sync to fetch email items (messages) for a sepcific list ID, during a time period. sync only fetch message metadata, inlucde subject, sender, timestamp, its unique url. For getting messages on a target TSG WG, use the corresponding list ID. Note - there may be minutes delay for real world email messages appear on the LISTSERV server. sync again to get newly added messages.
  3. Use listserv_parse for the same list to fetch details of already synced messages. parse get the email text content, attachement list (names and urls), and extracted list of TDocs (comma-delimited list) it mentioned in the email. Attachment names and URLs are metadata only; this app never fetches attachment bytes. Use listserv_parse_item to parse a single message with its unique url.
  4. Use listserv_search to search stored (synced) email items. Three types search are supported, which can be combined if the corresonding args given.
    • full text (--text, with fts5 search syntax)
    • vector/embeding search (--semantic, free text like native question)
    • field filter (--<field>, with enriched SQL LIKE style) For tdocs, which stored comma-delimited Tdoc IDs, use SQL LIKE pattern e.g. "%R1-2610793%" to match one ID within a multi-ID value. The search returns message metadata, and if parsed, their TDocs and contents preview (200 chars).
  5. Use listserv_show with a message's unique url to get its full content and attachemnt list. a return field content_truncated indicates if the parsed content is truncated, in which case you need to use url to directly web fetch online to get the full content.

Examples:

# discover possible 3GPP SA email list in the catalog
listserv_list         {"list_id":"3GPP_TSG_SA%"}
# sync messages meta for RAN5 meeting
listserv_sync         {"list_id":"3GPP_TSG_RAN_WG5","date":[">= 2026-10-01","<= 2026-10-31"]}
get_job               {"job_id":"<sync job_id>"}  # poll until terminal
# parse message detail
listserv_parse        {"list_id":"3GPP_TSG_RAN_WG5","date":[">= 2026-10-01","<= 2026-10-31"]}
get_job               {"job_id":"<parse job_id>"} # poll until terminal
# parse one explicit email item with its url, and poll its job
listserv_parse_item   {"url":"https://list.etsi.org/scripts/wa.exe?A2=3GPP_TSG_RAN_WG5_SIG;5d45a78f.2611B&S=","force":true}
get_job               {"job_id":"<parse-item job_id>"}
# search for R1-2610793 and AI in lists matching the RAN WG pattern
listserv_search       {"list_id":"3GPP_TSG_RAN_WG%","tdocs":"%R1-2610793%","text":"AI","limit":10}
# get full content and attachement info on a message
listserv_show         {"url":"<exact url of the target message>"}
# check the search index status (fts5 and semantic index if embedding is configured)
listserv_index_status {}

Sync/parse job results separate source failed/failures from derived index_failed/index_failures; either can fail the job, but index failures do not undo stored source data. Check listserv_index_status({}) and, when needed, enqueue listserv_index_rebuild({"rebuild":true}) for FTS5, {"rebuild_embeddings":true} for vectors, or {"rebuild_all":true} for both. Poll the rebuild job. Rebuilding uses stored data, not the upstream archive.

Filters, pagination, and search indexes

Filters on list/search tools generally accept SQL-LIKE % wildcards, for example title:"%handover%". Plain values match exactly. Testcase group requires an exact match: 5G, LTE, IMS, UTRA, POS, or MCX.

The list_meetings, list_tdocs, list_specs, and list_testcases tools default to 50 rows. Use limit and offset to paginate.

The search_tdoc and search_spec_docs tools select these search modes:

  • FTS5 with text.
  • Vector search with semantic.
  • Hybrid search with both.
  • Filter-only search with neither.

Search result provenance and coverage

search_spec_docs returns each matching chunk's full text and exact, case-preserving ZIP member source_file in every mode.

Each search_tdoc row contains matched_documents. This list can be empty for metadata-only or filter-only results. Each entry includes the source ZIP URL (ftp_url), member path (source_file), document_id, score, FTS previews, and matched_chunk. The chunk is {chunk_id, chunk_index, text} or null. Use the entry's URL and path for a source-specific read.

TDoc FTS5 searches metadata and SQL-stored content documents. These documents include CR annexes and main documents and annexes of WID, LS, and discussion TDocs. FTS5 searches whole documents and indexes every extracted .ppt and .pptx text chunk, regardless of the semantic cap. A whole-document match can have matched_chunk: null. This can occur when query terms span chunks or a Word match has no source chunk.

Example: investigate a meeting and its spec text

These are successive MCP tool calls. Replace example IDs with values from earlier reads. After each job-producing call, poll get_job to succeeded before proceeding.

sync_meetings       {"tsg":"R5"}
get_job             {"job_id":"<meeting-sync job_id>"}  # poll until terminal
list_meetings       {"tsg":"R5","name":"%RAN5%","limit":10}
get_meeting         {"meeting_id":<meeting_id from list_meetings>}
sync_tdocs          {"meeting_id":<meeting_id>}
get_job             {"job_id":"<tdoc-sync job_id>"}     # poll until terminal
list_tdocs          {"meeting_id":<meeting_id>,"title":"%handover%"}
parse_tdocs         {"filter":{"tdoc_id":"<tdoc_id from list_tdocs>"}}
get_job             {"job_id":"<tdoc-parse job_id>"}    # poll until terminal
get_tdoc            {"tdoc_id":"<tdoc_id>"}
search_tdoc         {"text":"handover","meeting_id":<meeting_id>}
sync_specs          {"spec_id":"38.331"}
get_job             {"job_id":"<spec-sync job_id>"}    # poll until terminal
get_spec            {"spec_id":"38.331"}
parse_spec_docs     {"spec_id":"38.331","version":"<ZIP-backed version from get_spec>"}
get_job             {"job_id":"<spec-doc-parse job_id>"} # poll until terminal
get_spec_toc        {"spec_id":"38.331","version":"<parsed version>"}
search_spec_docs    {"text":"handover","spec_id":"38.331","version":"<parsed version>", "sections":"5.2.2.3%"}

For a RAN5 testcase status question, use this independent path. The list filter is testcase. The detail selector is testcase_id:

sync_testcases      {}
get_job             {"job_id":"<testcase-sync job_id>"} # poll until terminal
list_testcases      {"spec":"38.523-1","group":"5G","limit":10}
get_testcase        {"testcase_id":"<testcase_id from list_testcases>","group":"5G"}

The list_testcases tool returns one row per testcase/group with nested path statuses. The get_testcase tool always returns an array, even when group selects one row. Omit group to inspect every stored group for an ID. Status filters match if any path has the specified value.

Synchronization can skip processing when a previous parse includes the latest source. Inspect the job's result before interpreting an empty list.

If a list is empty, check that the upstream sync job succeeded. Check that the filters match the returned IDs. TDoc synchronization needs a stored meeting. Specification-document parsing needs a stored specification/version with a ZIP link. A TOC or body-content cache miss means parsing did not yet place the relevant document in that cache.

Use the returned rows, search hits, and source/version identifiers when answering. Do not infer document contents or testcase status from a title alone.

라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2026 jerry wang

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.