cognitive-foundations
π―Skillfrom petekp/claude-code-setup
Analyzes and applies cognitive science research to improve AI interaction design, focusing on human perception, attention limits, and psychological constraints.
Installation
npx skills add https://github.com/petekp/claude-code-setup --skill cognitive-foundationsSkill Details
Overview
# Claude Code Setup
My portable, version-controlled Claude Code configuration. Fork it, customize it, sync it across machines.
Quick Start
```bash
git clone https://github.com/petekp/claude-code-setup.git
cd claude-code-setup && ./setup.sh
// Optional prompt to streamline usage
claude "This is someone else's Claude Code configuration setup. I also want to version my Claude Code configuration. Analyze this configuration and provide a concise summary of its contents, how it differs from my current setup, what I may find particularly useful. After that, interview me about what I do or don't want to bring over to my own configuration, and my preferences around where nad how to store my own versioned Claude Code repo."
```
That's it. Your Claude Code now uses this repo's skills and commands.
How It Works
This repo symlinks into ~/.claude/, so your Claude Code configuration lives in a git repo you control.
```
~/.claude/
βββ skills/ β
βββ commands/ β
βββ agents/ β
βββ hooks/ β
βββ scripts/ β
```
Edit files in either location β they're the same files. Commit and push to sync across machines.
Setup
Fork and Clone (Recommended)
- Fork this repo on GitHub
- Clone and run setup:
```bash
git clone https://github.com/petekp/claude-code-setup.git
cd claude-code-setup && ./setup.sh
```
- Customize β see [FORKING.md](FORKING.md)
Direct Clone
```bash
git clone https://github.com/petekp/claude-code-setup.git
cd claude-code-setup && ./setup.sh
```
Clone it wherever you keep projects β the setup script detects its own location.
Syncing Changes
From the repo directory:
```bash
git add -A && git commit -m "Update config" && git push
```
On another machine, just git pull.
Undo
```bash
./setup.sh --undo
```
Removes symlinks and restores any backed-up directories.
What's Included
Skills
| Skill | Purpose |
| ----------------------- | ------------------------------------------------------------ |
| cognitive-foundations | User psychology, attention, memory limits, HCI research |
| design-critique | UI/UX reviews with severity ratings and accessibility checks |
| dreaming | Expansive thinking, 10x questions, breaking constraints |
| interaction-design | Component behaviors, micro-interactions, state transitions |
| model-first-reasoning | Formal logic, state machines, constraint systems |
| nextjs-boilerplate | Next.js + Tailwind + shadcn/ui project setup |
| oss-product-manager | Open source strategy, community dynamics, governance |
| react-component-dev | React patterns, forwardRef, accessibility, composition |
| startup-wisdom | Product strategy, PMF, prioritization, founder decisions |
| stress-testing | Pre-mortems, risk analysis, assumption audits |
| tutorial-writing | Educational content, step-by-step implementation guides |
| typography | Type scales, font selection, hierarchy, readability |
| unix-macos-engineer | Shell scripts, CLI tools, launchd, system admin |
| ux-writing | Microcopy, error messages, empty states, voice/tone |
| wise-novice | Fresh perspectives, naive questions, challenging assumptions |
Commands
| Command | Purpose |
| ---------------------- | ------------------------------------------------------------------ |
| /commit-and-push | Generate conventional commit and push to remote |
| /grok | Deep 6-phase codebase analysis for authoritative understanding |
| /interview | Gather context for planning with suggested answers |
| `/ne
More from this repository10
startup-wisdom skill from petekp/claude-code-setup
Guides users through learning complex topics by adopting a beginner's mindset, breaking down advanced concepts into approachable, incremental steps.
Helps open-source project maintainers strategically plan product roadmaps, prioritize features, and manage community contributions by providing structured product management guidance.
Generates a production-ready Next.js project structure with pre-configured TypeScript, Tailwind CSS, testing setup, and deployment configurations.
Generates, refactors, and optimizes React components with best practices, focusing on clean code structure, performance, and modern React patterns.
Explores creative problem-solving by generating expansive, constraint-breaking ideas and asking provocative 10x thinking questions to unlock innovative solutions.
Generates and refines markdown documentation, providing structured writing assistance for technical and professional content creation.
Provides systematic UI/UX design reviews with structured severity ratings and comprehensive accessibility evaluations.
Provides expert guidance, best practices, and advanced techniques for designing high-quality, performant SwiftUI user interfaces with a focus on clean architecture and idiomatic Swift development.
Provides expert SwiftUI development guidance, component design recommendations, and code generation for iOS and macOS app interfaces.