local-security
Skill1 starsChanged 9 months agoApache-2.0View on GitHub
Developer workstation security covering SSH key management, GPG signing, credential stores, file permissions, agent forwarding, IDE hardening, and browser extension auditing.
- Reads credentials
In this repository73 other files it gives its agents.
- accessibility-wcagSkill
- api-designSkill
- api-testingSkill
- asset-optimizationSkill
- audio-systemsSkill
- aws-essentialsSkill
- ci-cd-pipelinesSkill
- codebase-analysisSkill
- code-reviewerSkill
- container-securitySkill
- cost-optimizationSkill
- database-designSkill
- data-visualizationSkill
- doc-generationSkill
- docker-kubernetesSkill
- docxSkill
- email-notificationsSkill
- env-configSkill
- flutter-mobileSkill
- framer-motionSkill
- frontend-code-reviewSkill
- frontend-designSkill
- fullstack-developerSkill
- game-enginesSkill
- gameplay-designSkill
- game-programming-languagesSkill
- game-serversSkill
- git-workflowSkill
- godot-4Skill
- golang-proSkill
- go-linter-configurationSkill
- graphics-renderingSkill
- i18n-localizationSkill
- incident-responseSkill
- level-designSkill
- llm-integrationSkill
- memory-managementSkill
- monetization-systemsSkill
- monitoring-observabilitySkill
- multiplayer-netcodeSkill
- nextjs-16Skill
- notebooklm-researchSkill
- npm-packageSkill
- oauth-authSkill
- particle-systemsSkill
- performance-optimizationSkill
- playwright-testingSkill
- postgres-advancedSkill
- programming-architectureSkill
- project-migrationSkill
- publishing-platformsSkill
- python-best-practicesSkill
- react-nativeSkill
- redis-patternsSkill
- refactoring-patternsSkill
- remotion-best-practicesSkill
- rust-best-practicesSkill
- scraping-automationSkill
- security-reviewSkill
- seo-metaSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
Treat the developer workstation as a critical supply chain node.
- Distinctive: line 158
Verify: after cloning repos. Git does not preserve full Unix permissions.
- Distinctive: line 190
List: all installed extensions. Remove any unused ones immediately.
- Distinctive: line 214
Use this skill: When setting up a new workstation, onboarding a team member, or after any security incident that may have exposed developer …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Treat the developer workstation as a critical supply chain node. A compromised dev machine means compromised code, credentials, and infrastructure access. Follow these workflows to harden each surface.
SSH Hardening Workflow
- Generate an Ed25519 key per service. One key for GitHub, another for production servers, another for cloud.
- Protect the private key with a passphrase. Load it into
ssh-agentso you type it once. - Lock permissions on the
.sshdirectory and all key files. - Configure
~/.ssh/configto use ProxyJump instead of agent forwarding. - Rotate keys annually. Remove old public keys from every authorized service.
# Step 1: Generate a dedicated key
ssh-keygen -t ed25519 -C "github@workstation" -f ~/.ssh/id_ed25519_github
# Step 2: Add to agent with passphrase caching
ssh-add ~/.ssh/id_ed25519_github
# Step 3: Lock permissions
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_ed25519_*
chmod 644 ~/.ssh/*.pub
# Step 5: Verify fingerprint before trusting a key
ssh-keygen -l -f ~/.ssh/id_ed25519_github.pubBAD - Single key reused everywhere, no passphrase, open permissions:
ssh-keygen -t rsa -b 2048 -N "" -f ~/.ssh/id_rsa
chmod 755 ~/.ssh
# Same key added to GitHub, AWS, production bastion, personal VPSGOOD - Dedicated Ed25519 key, passphrase, tight permissions:
ssh-keygen -t ed25519 -C "github@workstation" -f ~/.ssh/id_ed25519_github
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_ed25519_githubBAD - Agent forwarding to untrusted host:
Host bastion
HostName bastion.example.com
ForwardAgent yesGOOD - ProxyJump through bastion, no agent exposure:
Host bastion
HostName bastion.example.com
Host production
HostName 10.0.1.50
ProxyJump bastionWindows OpenSSH Agent Setup
# Enable and start the agent service (persists across reboots)
Get-Service ssh-agent | Set-Service -StartupType Automatic
Start-Service ssh-agent
# Add key once
ssh-add $HOME\.ssh\id_ed25519_github
# Point Git to Windows OpenSSH instead of bundled ssh
git config --global core.sshCommand "C:/Windows/System32/OpenSSH/ssh.exe"
# Verify
ssh-add -lGPG Signing Setup
- Install GPG tooling (Gpg4win on Windows, gnupg on Linux/macOS).
- Generate a key with RSA 4096 or Ed25519. Set expiration to 1-2 years.
- Configure Git to sign all commits automatically.
- Export the public key and upload to GitHub/GitLab.
- Back up the private key to an encrypted offline location.
# Step 2: Generate key
gpg --full-generate-key
# Step 2b: Find your key ID
gpg --list-secret-keys --keyid-format=long
# Output: sec ed25519/ABC123DEF456 2024-01-01 [SC] [expires: 2026-01-01]
# Step 3: Configure Git
git config --global commit.gpgsign true
git config --global user.signingkey ABC123DEF456
# Step 4: Export public key (pipe to clipboard or file)
gpg --armor --export ABC123DEF456 > gpg-public.asc
# Windows: point Git to Gpg4win binary
git config --global gpg.program "C:/Program Files (x86)/GnuPG/bin/gpg.exe"BAD - No expiration, no signing configured:
gpg --gen-key # Defaults to no expiration
# Never configure git commit.gpgsign
# Commits show as "Unverified" on GitHubGOOD - Expiring key, auto-signing enabled:
gpg --full-generate-key # Choose Ed25519, set 2-year expiry
git config --global commit.gpgsign true
git config --global user.signingkey ABC123DEF456
# Commits show "Verified" badge on GitHubCredential Management
- Configure a Git credential helper for your OS.
- Eliminate plaintext secrets from shell history, dotfiles, and scripts.
- Install gitleaks as a pre-commit hook to catch accidental leaks.
- Use a secrets manager for scripts that need credentials at runtime.
# Step 1: Git credential helper
git config --global credential.helper manager # Windows
git config --global credential.helper osxkeychain # macOS
git config --global credential.helper store # Linux (plaintext fallback)
# Step 3: Install gitleaks pre-commit
gitleaks detect --source . --verbose
# Step 4: Inject secrets from 1Password CLI (never in env or code)
op read "op://Development/github-token/credential"BAD - Token hardcoded in script:
GITHUB_TOKEN="ghp_abc123secrettoken"
curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/userGOOD - Token pulled from credential store at runtime:
GITHUB_TOKEN=$(op read "op://Development/github-token/credential")
curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/userFile Permissions Audit
- Scan home directory for world-readable sensitive files.
- Fix permissions on SSH keys, cloud configs, token files.
- Verify after cloning repos. Git does not preserve full Unix permissions.
# Step 1: Find sensitive files with bad permissions
find ~ -maxdepth 3 -name ".netrc" -o -name ".npmrc" -o -name "credentials" \
-o -name ".env" -o -name "*.pem" | xargs ls -la
# Step 2: Lock down sensitive files
chmod 600 ~/.netrc ~/.npmrc ~/.config/gh/hosts.yml
chmod 600 ~/.aws/credentials ~/.config/gcloud/*.json
chmod 700 ~/.gnupg
# Step 3: Verify SSH directory after any change
ls -la ~/.ssh/BAD - World-readable credentials:
-rw-r--r-- 1 dev dev 256 Jan 1 ~/.netrc
-rwxrwxrwx 1 dev dev 512 Jan 1 ~/.ssh/id_ed25519
drwxr-xr-x 2 dev dev 4096 Jan 1 ~/.awsGOOD - Owner-only access:
-rw------- 1 dev dev 256 Jan 1 ~/.netrc
-rw------- 1 dev dev 512 Jan 1 ~/.ssh/id_ed25519
drwx------ 2 dev dev 4096 Jan 1 ~/.awsIDE and Extension Hardening
- List all installed extensions. Remove any unused ones immediately.
- Pin extension versions in team workspace settings.
- Check
.vscode/settings.jsonand.idea/for leaked tokens or local paths before committing. - Use remote development (SSH, containers) for sensitive codebases.
# List VS Code extensions
code --list-extensions
# Check workspace settings for leaked paths or tokens
grep -r "token\|secret\|password\|C:\\\\Users" .vscode/ .idea/ 2>/dev/nullMaintenance Schedule
Monthly: Rotate temp credentials. Review ssh-add -l. Check OS updates.
Quarterly: Audit browser + IDE extensions. Run gitleaks detect on all repos.
Annually: Rotate SSH and GPG keys. Full permissions audit. Update threat model.
Incident: Assume compromise. Rotate ALL credentials. Audit access logs.Use this skill: When setting up a new workstation, onboarding a team member, or after any security incident that may have exposed developer credentials.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

