codebase

Query and operate Codebase repositories, merge requests, commits, comments, and reviewers via gdpa-cli.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/yuezhen-huang/my-bytedance-skillhub --skill codebase-yuezhen-huang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase
Source: https://github.com/yuezhen-huang/my-bytedance-skillhub/tree/main/codebase
Command: npx skills add https://github.com/yuezhen-huang/my-bytedance-skillhub --skill codebase-yuezhen-huang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with the internal Codebase platform (code.byted.org) normally requires manual UI navigation or raw API calls. This Skill lets you query and operate repositories, branches, files, commits, merge requests, diffs, comments, reviewers, check runs, and permissions directly through a single CLI interface, and it handles internal URLs that generic web fetching cannot reach. ## Core Features & Use Cases - Repository & Code Access: Look up repos by path, list branches, read file contents, and inspect commits or diffs between revisions. - Merge Request Lifecycle: Create, update, merge, and bypass MRs; manage reviewers, draft comments, review status, and check runs. - Insights & Permissions: Query user activity statistics, review network statistics, search users, and apply for repository permissions. - Use Case: Given a link like code.byted.org/tiktok/gdp_gemini_proxy/merge_requests/7, fetch the MR details, list its diff files and check runs, add reviewers, and post a review comment — all without leaving your AI workflow. ## Quick Start Ask the AI to fetch the details and diff files of merge request number 7 in the tiktok/gdp_gemini_proxy repository on code.byted.org.

Frequently Asked Questions about codebase

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get merge request details from code.byted.org?

Run the get_merge_request action with the repo_id (numeric ID or org/repo path) and the MR number. You can also identify an MR by id or change_id, and the same pattern works for diffs, comments, and review status.

How do I create and merge a merge request via CLI?

Use create_merge_request with repo_id, source_branch, target_branch, and title, then merge_merge_request with the repo_id and MR number. Optional parameters control squash commits, merge method, and source branch removal.

Can I manage MR reviewers and comments programmatically?

Yes. The update_reviewers action adds, removes, or sets reviewers using usernames or IDs, and create_comment or create_draft_comment posts comments on an MR by repo_id and number. Draft comments can be published in bulk with publish_draft_comments.

What authentication does the Codebase CLI use?

By default it automatically obtains the user JWT and exchanges it for a Codebase UserJWT, so no setup is needed. As a fallback, you can create a Personal Access Token on code.byted.org and export it as CODEBASE_PAT_TOKEN.

Why should I use this instead of WebFetch for code.byted.org links?

code.byted.org is an internal domain that generic web fetching cannot access. This Skill authenticates against the internal API and returns structured JSON for repos, MRs, commits, and check runs.

How do I apply for repository permissions on Codebase?

Use the apply_repo_permission action with the repo name or path and a reason. The permission level defaults to developer and also supports reporter or master, with one repository per request.