Goal
Goal setting reference — SMART goals, OKRs, habit formation, accountability systems. Use when setting personal or professional goals, designing habit systems...
Documentation & Preview
#!/usr/bin/env bash
goal — Goal Setting & Achievement Reference
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
set -euo pipefail
VERSION="1.0.0"
cmd_intro() { cat << 'EOF' === Goal Setting Fundamentals ===
Why Goals Work (Locke & Latham, 2002 — 35 years of research):
- Goals direct attention and effort toward relevant activities
- Goals energize — higher goals lead to greater effort
- Goals affect persistence — clear targets increase endurance
- Goals activate cognitive knowledge and strategies
Key Findings:
- Specific, difficult goals outperform "do your best" by 20-25%
- Written goals are 42% more likely to be achieved (Matthews, 2015)
- Public commitment increases follow-through
- Progress tracking doubles success rate
Goal Hierarchy: Vision "What does my ideal life look like?" (5-10 years) Mission "What am I here to do?" (purpose statement) Goals "What will I achieve?" (1-3 years) Milestones "What are the major checkpoints?" (quarterly) Projects "What must I build/do?" (monthly) Actions "What do I do today?" (daily/weekly)
Types of Goals: Outcome goals End result ("lose 20 lbs") — motivating but less controllable Performance goals Benchmark ("run 5K in 25 min") — measurable progress Process goals Daily actions ("run 3x/week") — most controllable Best practice: Set outcome goal, measure performance, focus on process
The 3 Domains of Life Goals: Health & Vitality Body, energy, longevity, mental health Relationships Family, friends, community, love Work & Contribution Career, skills, impact, wealth Balance across all three — success in one doesn't compensate for neglect in others EOF }
cmd_smart() { cat << 'EOF' === SMART Goals Framework ===
S — Specific Who, what, where, when, why? Bad: "Get in shape" Good: "Complete a half marathon in my city"
M — Measurable How will you know you've achieved it? Bad: "Save more money" Good: "Save $10,000 in emergency fund"
A — Achievable (but challenging) Stretch enough to grow, realistic enough to believe Bad: "Become fluent in 5 languages this year" Good: "Reach B2 conversational level in Spanish by December"
R — Relevant Aligned with your values and larger life goals Ask: "If I achieve this, will it actually matter to me?" Ask: "Is this MY goal, or someone else's expectation?"
T — Time-bound Clear deadline creates urgency and enables planning Bad: "Eventually learn to code" Good: "Build and deploy a portfolio website by March 31"
SMART EXAMPLES:
Health: "Run 3 times per week for 30 minutes, increasing to 5K distance by June 1, tracking runs in Strava."
Career: "Earn AWS Solutions Architect certification by Q2 2025, studying 1 hour per weekday, using official practice exams."
Financial: "Reduce monthly discretionary spending by 20% ($400) starting February 1, tracking in YNAB budget app."
Relationship: "Have a weekly 1-hour date night with partner every Friday, phone-free, trying a new restaurant monthly."
BEYOND SMART — Add: E — Evaluated (regularly check progress) R — Revised (adjust based on learning) → SMARTER goals adapt to reality EOF }
cmd_okr() { cat << 'EOF' === OKR Framework (Objectives & Key Results) ===
Origin: Andy Grove at Intel, popularized by John Doerr at Google. Used by: Google, LinkedIn, Twitter, Spotify, Airbnb, and thousands more.
STRUCTURE: Objective: Qualitative, inspiring, action-oriented "What do I want to accomplish?" Key Results: Quantitative, measurable, verifiable "How will I know I got there?" (2-5 per objective)
RULES:
- Set 3-5 objectives per quarter (focus!)
- Each objective has 2-5 key results
- Key results must be measurable (number, %, date)
- Stretch: aim for 60-70% achievement (aspirational OKRs)
- Score: 0.0 to 1.0 (0.7 = target for stretch OKRs)
- OKRs are NOT performance reviews (safe to stretch and fail)
EXAMPLE — Personal: Objective: Become a stronger software engineer KR1: Complete 3 system design case studies with written analysis KR2: Contribute 5 merged PRs to an open-source project KR3: Score 90%+ on AWS Solutions Architect practice exam KR4: Mentor 1 junior developer for 12 weeks
EXAMPLE — Team: Objective: Delight our customers with faster support KR1: Reduce average first-response time from 4h to 1h KR2: Achieve 95% customer satisfaction score (currently 82%) KR3: Resolve 80% of tickets on first contact (currently 60%) KR4: Launch self-service knowledge base with 50 articles
CADENCE: Annual: Company/personal vision OKRs (directional) Quarterly: Primary OKR cycle (set → execute → score) Weekly: Check-in on KR progress, adjust tactics End of Q: Score, reflect, set next quarter's OKRs
ALIGNMENT: Company OKRs → Department OKRs → Team OKRs → Individual OKRs Not top-down cascade! ~60% bottom-up + ~40% top-down Alignment = connected goals, not micromanagement
SCORING: 0.0-0.3 Red — failed to make significant progress 0.4-0.6 Yellow — progress but fell short 0.7-1.0 Green — strong delivery Consistent 1.0 scores? Your OKRs aren't ambitious enough. EOF }
cmd_habits() { cat << 'EOF' === Habit Formation Science ===
THE HABIT LOOP (Charles Duhigg / BJ Fogg): Cue → Routine → Reward → Repeat
Cue: Trigger that initiates behavior Time, location, preceding event, emotional state, other people Routine: The behavior itself (what you do) Reward: Satisfaction that reinforces the loop Intrinsic (pride) or extrinsic (treat)
ATOMIC HABITS (James Clear) — 4 Laws:
- Make it Obvious (Cue)
- Implementation intention: "I will [BEHAVIOR] at [TIME] in [LOCATION]"
- Habit stacking: "After I [CURRENT HABIT], I will [NEW HABIT]"
- Environment design: put cues in visible places
- Make it Attractive (Craving)
- Temptation bundling: pair habit with something you enjoy
- Join a culture where the behavior is normal
- Reframe: "I GET to" instead of "I HAVE to"
- Make it Easy (Response)
- Two-Minute Rule: start with just 2 minutes
- Reduce friction: lay out gym clothes the night before
- Pre-commitment: automate, schedule, remove choices
- Make it Satisfying (Reward)
- Immediate reward after the habit
- Habit tracking (visual progress — "don't break the chain")
- Never miss twice (one miss is an accident, two is a new habit)
HABIT FORMATION TIMELINE: Research (Lally et al., 2010): Average 66 days to automaticity Range: 18-254 days depending on complexity Simple (drink water): ~20 days Moderate (exercise): ~66 days Complex (meditation): ~100+ days
KEYSTONE HABITS: Habits that trigger positive cascading changes: Exercise → better sleep → better mood → better eating Journaling → self-awareness → better decisions → growth Making bed → sense of order → productivity → discipline
BREAKING BAD HABITS (Invert the 4 Laws):
- Make it Invisible Remove cues (hide phone, uninstall apps)
- Make it Unattractive Highlight negative consequences
- Make it Difficult Increase friction (website blockers, lock boxes)
- Make it Unsatisfying Accountability partner, commitment contracts
EOF }
cmd_planning() { cat << 'EOF' === Goal Decomposition & Planning ===
BACKWARD PLANNING (Start from the End):
- Define the goal with deadline
- Identify the final milestone before completion
- Work backward: what must happen before that?
- Continue until you reach today
- You now have a reverse-engineered action plan
Example: Goal: "Launch SaaS product by December 1" Nov: Beta testing with 20 users → fix critical bugs Oct: Build MVP with core features → deploy to staging Sep: Design system architecture → set up CI/CD Aug: Customer interviews → validate problem → define MVP scope Jul: Market research → competitor analysis → positioning Today: Schedule 5 customer interview calls this week
MILESTONE FRAMEWORK: Break annual goals into quarterly milestones Break quarterly milestones into monthly targets Break monthly targets into weekly sprints Break weekly sprints into daily actions
Example: Annual: Save $12,000 Quarterly: Save $3,000 Monthly: Save $1,000 Weekly: Save $250 Daily: Bring lunch ($10 savings), skip coffee ($5)
THE 12-WEEK YEAR (Brian Moran): Treat 12 weeks like a full year Benefits:
- Urgency: every week is a "month"
- Focus: only 2-3 goals per 12-week cycle
- Scoring: measure weekly execution against plan
- Reset: fresh start every 12 weeks
Weekly execution score = (completed actions / planned actions) × 100 Target: 85%+ weekly execution score
TIME BLOCKING FOR GOALS: Calendar your goal-related activities as appointments "What gets scheduled gets done"
Morning block: Deep work on #1 goal (before distractions) Midday block: Learning/skill development Evening block: Review, planning, reflection
Protect these blocks like meetings with your boss.
MINIMUM VIABLE PROGRESS: On bad days, do the minimum to maintain momentum:
- Exercise goal? Do 5 pushups (not zero)
- Writing goal? Write one sentence
- Study goal? Review one flashcard
The habit of showing up matters more than the amount. EOF }
cmd_motivation() { cat << 'EOF' === Motivation Science ===
SELF-DETERMINATION THEORY (Deci & Ryan): Three innate psychological needs: Autonomy "I choose this" — internal locus of control Competence "I can do this" — mastery and growth Relatedness "I belong" — connection to others
Goals that satisfy all three = sustainable motivation Goals that rely only on external pressure = burnout
INTRINSIC vs EXTRINSIC MOTIVATION: Intrinsic: Doing it because it's inherently rewarding Curiosity, mastery, purpose, enjoyment Extrinsic: Doing it for external outcomes Money, praise, avoiding punishment, status
⚠️ Overjustification Effect: Adding external rewards to intrinsically motivated activities can DECREASE motivation. (e.g., paying kids to read → they read less)
THE MOTIVATION EQUATION (Piers Steel): Motivation = (Expectancy × Value) / (Impulsiveness × Delay)
Expectancy: "Can I actually do this?" → build confidence with small wins Value: "Is this worth doing?" → connect to identity and values Impulsiveness: "Shiny distractions!" → reduce temptations, environment design Delay: "Results are far away" → break into smaller milestones
OVERCOMING PLATEAUS: Recognition: Progress isn't linear — plateaus are part of learning Variation: Change approach (different methods, same goal) Novelty: New challenge within the domain Rest: Sometimes plateau = overtraining (physical or mental) Reframing: Plateau = consolidation, not stagnation Community: Others going through the same → normalize the struggle
MOTIVATION TRAPS: "I'll start Monday" → Start now, imperfectly "I need to feel ready" → Action creates motivation, not vice versa "All or nothing" → Something beats nothing, every time "Comparison to others" → Compare to your yesterday-self only "Motivation will last" → It won't. Build systems, not just motivation.
IDENTITY-BASED MOTIVATION (James Clear): Instead of: "I want to lose weight" (outcome) Think: "I am a person who moves every day" (identity) Each action is a vote for the type of person you want to become. Ask: "What would a healthy/productive/kind person do right now?" EOF }
cmd_review() { cat << 'EOF' === Review Systems ===
WEEKLY REVIEW (30-60 minutes, same day each week):
- Review last week's actions — what got done? What didn't?
- Check metrics — are KPIs/KRs on track?
- Celebrate wins — acknowledge progress (no matter how sma