Install any skill in seconds. Free to start, no credit card required.
Get Started Free →This skill covers the implementation of GitHub OAuth helper functions. Trigger: Load this skill when handling GitHub OAuth processes.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-15 | ✗→✓ | ▲ Improved | -7% | 0% |
| case-01 | ✗→✓ | ▲ Improved | -54% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -46% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -54% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 15% | 0% |
<!-- L1:START -->
This skill covers the implementation of GitHub OAuth helper functions.
Trigger: Load this skill when handling GitHub OAuth processes. <!-- L1:END -->
<!-- L2:START -->
| Task | Pattern | |------|---------| | Generate OAuth state | generate_state() | | Validate OAuth state | validate_state() |
<!-- L2:END -->
<!-- L3:START -->
This function creates a unique state parameter to prevent CSRF attacks during the OAuth flow.
pythonfrom apps.server.app.services.github_oauth import generate_state state = generate_state()
This function checks if the provided state matches the expected value to ensure the integrity of the OAuth process.
pythonfrom apps.server.app.services.github_oauth import validate_state is_valid = validate_state(received_state, expected_state)
bashdocker-compose up python repoforge/cli.py
Hardcoding state values can lead to security vulnerabilities and CSRF attacks.
python# BAD state = "fixed_state_value"
<!-- L3:END -->
Other measured skills in the registry, with their headline benchmark lift.