Skip to content
Back to skills

Quickstart

ASecurity

Use this skill when the user wants to generate secure short-lived GitHub tokens, set up Git credential helpers, or manage GitHub App authentication for local development.

  • 58 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
toolsbashgit

Works with

  • cli

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add javimosch/supercli --skill quickstart --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Quickstart?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Quickstart
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/javimosch-quickstart-3144ede0/badge)](https://www.skillsdirectory.com/skills/javimosch-quickstart-3144ede0)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ghtkn
description: Use this skill when the user wants to generate secure short-lived GitHub tokens, set up Git credential helpers, or manage GitHub App authentication for local development.
---

# Ghtkn Plugin

Generate short-lived (8-hour) GitHub App User Access Tokens for secure local development.

## Commands
- `ghtkn <resource> <action>` — Execute ghtkn commands
- `ghtkn self version` — Print ghtkn version
- `ghtkn init config` — Initialize ghtkn configuration file
- `ghtkn get token` — Generate or retrieve a GitHub User Access Token
- `ghtkn git-credential helper` — Use ghtkn as Git credential helper
- `ghtkn list apps` — List configured GitHub Apps
- `ghtkn _ _` — Passthrough to ghtkn CLI

## What is ghtkn?

ghtkn (GH-Token) generates secure 8-hour User Access Tokens from GitHub Apps using Device Flow. Stop risking token leaks with long-lived Personal Access Tokens.

## Quick Start

```bash
# Initialize configuration
sc ghtkn init config

# Generate a token (opens browser for Device Flow)
sc ghtkn get token

# Use token with GitHub CLI
env GH_TOKEN=$(ghtkn get) gh issue create --title "Test"

# Use as Git credential helper
git config --global credential.helper '!ghtkn git-credential'
```

## Key Features

- **Short-lived tokens** - Only 8 hours validity
- **No secrets required** - Only Client ID (not secret)
- **User-attributed actions** - Operations performed as you, not as app
- **Automatic token management** - OS keyring integration
- **Multiple GitHub Apps** - Switch apps by repository or directory

## Key Commands

### Configuration
- `sc ghtkn init config` - Create configuration file
- `sc ghtkn list apps` - List configured GitHub Apps

### Token Management
- `sc ghtkn get token` - Generate/retrieve access token
- `sc ghtkn get token --app myapp` - Use specific GitHub App

### Git Integration
- `sc ghtkn git-credential helper` - Use as Git credential helper

## Setup

1. Create GitHub App with Device Flow enabled
2. Run `ghtkn init config` to create config file
3. Add Client ID to config: `apps: - name: myapp client_id: xxx`
4. Run `ghtkn get token` and authorize in browser

## Configuration File

Location: `~/.config/ghtkn/ghtkn.yaml` (Linux/macOS) or `%APPDATA%\ghtkn\ghtkn.yaml` (Windows)

```yaml
apps:
  - name: myapp
    client_id: xxx
    git_owner: username  # Optional: switch by repository owner
```

## Use Cases

- Secure local development with short-lived tokens
- Git authentication without long-lived PATs
- Multiple GitHub Apps for different organizations
- Automatic token rotation and management
- Directory-based app switching with direnv

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.