Automated summary
Sets up per-project GitHub MCP configuration with a fine-grained personal access token for accessing GitHub from Claude Code.
Strengths
- Keeps tokens isolated per project, reducing security risks
- Automatically adds .mcp.json to .gitignore to prevent token leaks
- Guides user through token creation with minimal permissions
- Provides both file-based and CLI setup methods
Limitations
- Requires manual token creation and insertion by the user
- Tokens expire and need periodic renewal
- Only works with Claude Code's MCP system
Use when you need to access GitHub repositories from Claude Code and want a secure, project-scoped setup.
Not recommended for global GitHub access or for projects that don't require GitHub operations.
Security analysis
SafeThe skill only writes a placeholder config file and updates .gitignore; no destructive or exfiltrating actions are performed. It emphasizes not reading token-containing files and encourages fine-grained PATs. No code execution beyond safe grep is used.
No concerns found
How this analysis is madeExamples
Set up GitHub MCP for this project so I can access PRs and issues.I need GitHub access from Claude Code. Please create the .mcp.json file and tell me how to configure it.Add GitHub MCP to this project using the CLI method.name: github-mcp description: Set up project-level GitHub MCP when GitHub operations (PRs, issues, repo access) are needed and no project GitHub MCP is configured. Automatically triggers when Claude detects GitHub access is required.
GitHub MCP Project Setup
This skill sets up per-project GitHub MCP configuration, keeping your GitHub Personal Access Token (PAT) isolated to specific projects rather than granting global access.
When to Use
Use this skill when:
- You need to access GitHub (PRs, issues, repo content) from Claude Code
- The project doesn't have GitHub MCP configured yet
- You want to avoid using a global GitHub PAT
Security Notice
CRITICAL: Claude must NEVER read files that may contain tokens.
- Never read
.mcp.jsonafter the user has added their token - Never read
.envfiles or any files that might contain secrets - The user is responsible for adding their token directly to the file
Instructions for Claude
When this skill is invoked:
Step 1: Create .mcp.json with Placeholder
Write this file to the project root (creating or overwriting):
{
"mcpServers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN_HERE"
}
}
}
}
Step 2: Update .gitignore
Add .mcp.json to .gitignore if not already present:
# Check and add to .gitignore
grep -q "^\.mcp\.json$" .gitignore 2>/dev/null || echo ".mcp.json" >> .gitignore
Step 3: Guide the User
Tell the user:
Setup complete! Now you need to:
Create a Fine-Grained PAT at: https://github.com/settings/personal-access-tokens/new
- Token name: "Claude Code - [project name]"
- Expiration: 90 days (or as needed)
- Repository access: "Only select repositories" → select just this repo
- Permissions:
- Contents: Read and write
- Issues: Read and write
- Pull requests: Read and write
- Metadata: Read-only (auto-selected)
Edit
.mcp.jsonin your project root and replaceYOUR_TOKEN_HEREwith your PATRestart Claude Code (MCP only loads on startup)
Verify with:
claude mcp list
Alternative: CLI Method
If preferred, the user can run this command directly (replacing with their actual PAT):
claude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_PAT_HERE"}}' --scope project
This stores the token directly in the project config.
Security Notes
.mcp.jsonis automatically added to.gitignoreto prevent accidental commits- Fine-grained PATs limit access to specific repositories only
- Project-level config means the token only works in this project directory
- Tokens can be revoked anytime at https://github.com/settings/tokens
- Claude will never read the .mcp.json file after setup to protect your token
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/github-mcp-project-level-setup-mm78no1n/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/github-mcp-project-level-setup-mm78no1n' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/github-mcp-project-level-setup-mm78no1n/download' --output '.skill-downloads/github-mcp-project-level-setup-mm78no1n/SKILL.md.part' && mv '.skill-downloads/github-mcp-project-level-setup-mm78no1n/SKILL.md.part' '.skill-downloads/github-mcp-project-level-setup-mm78no1n/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/github-mcp-project-level-setup-mm78no1n/SKILL.md' && test -s '.skill-downloads/github-mcp-project-level-setup-mm78no1n/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/github-mcp' && cp -R '.skill-downloads/github-mcp-project-level-setup-mm78no1n' '.claude/skills/github-mcp'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/github-mcp-project-level-setup-mm78no1n'openskills read 'github-mcp-project-level-setup-mm78no1n'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/github-mcp-project-level-setup-mm78no1n/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.