Skip to content

joedaws/agent-techniques / skills/weekly-companion

weekly-companion

Verified

Use in a long-running (one week) personal session driven from a phone — capture voice-to-text messages verbatim, turn them into work/life todos and an effort log, persist everything to the private data repo after every message, and answer "what are my priorities" with a ranked work + life list. Trigger when the user says "start my week", "capture", "priorities", "what did I do", "end the week", "/weekly-companion", or sends a rambling dictated note in a repo that has a weeks/ directory.

FileKindSize
.shellcheckrcother22 B
SKILL.mdskill md6.2 KB
scripts/bootstrap.shexecutablescript2.7 KB
scripts/capture.shexecutablescript1.5 KB
scripts/lib.shscript1.7 KB
scripts/sync.shexecutablescript2.7 KB
scripts/week-init.shexecutablescript3.6 KB
scripts/week-stats.shexecutablescript3.5 KB
templates/CLAUDE.mdmarkdown730 B
templates/areas.mdmarkdown381 B
tests/run-tests.shexecutablescript2.2 KB
tests/test-cases.shscript7.2 KB

tests/run-tests.sh

View on GitHub
#!/usr/bin/env bash
# Behavior tests for the weekly-companion scripts. Plain bash, no framework.
# Each test runs in a fresh temp data repo. Exit status is nonzero on failure.
set -o errexit
set -o nounset
set -o pipefail
IFS=$'\n\t'

TESTS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
readonly TESTS_DIR
# Used by the sourced test cases.
# shellcheck disable=SC2034
readonly SCRIPTS_DIR="${TESTS_DIR}/../scripts"
WORK_DIR="$(mktemp -d -t weekly-companion-tests.XXXXXX)"
readonly WORK_DIR
trap 'rm -rf "${WORK_DIR}"' EXIT

failures=0
passes=0

fail() {
    printf '  FAIL: %s\n' "$*" >&2
    return 1
}

assert_contains() {
    local haystack="$1"
    local needle="$2"
    [[ "${haystack}" == *"${needle}"* ]] || fail "expected to find [${needle}] in:"$'\n'"${haystack}"
}

assert_not_contains() {
    local haystack="$1"
    local needle="$2"
    [[ "${haystack}" != *"${needle}"* ]] || fail "did not expect [${needle}] in:"$'\n'"${haystack}"
}

new_data_repo() {
    local repo
    repo="$(mktemp -d "${WORK_DIR}/repo.XXXXXX")"
    git -C "${repo}" init --quiet --initial-branch=main
    git -C "${repo}" config user.email "test@example.invalid"
    git -C "${repo}" config user.name "test"
    # The host may enforce commit signing globally; test repos must not.
    git -C "${repo}" config commit.gpgsign false
    printf '%s\n' "${repo}"
}

run_test() {
    local test_name="$1"
    local status
    # errexit is ignored inside an `if` condition, so run the test as a plain
    # command with errexit re-enabled in its subshell and capture the status.
    set +o errexit
    ( set -o errexit; "${test_name}" ) 2>"${WORK_DIR}/stderr"
    status=$?
    set -o errexit
    if ((status == 0)); then
        passes=$((passes + 1))
        printf 'ok   %s\n' "${test_name}"
    else
        failures=$((failures + 1))
        printf 'FAIL %s\n' "${test_name}"
        sed 's/^/     /' "${WORK_DIR}/stderr"
    fi
}

# shellcheck source=test-cases.sh
source "${TESTS_DIR}/test-cases.sh"

main() {
    local test_name
    for test_name in $(declare -F | awk '{print $3}' | grep '^test_'); do
        run_test "${test_name}"
    done
    printf '\n%d passed, %d failed\n' "${passes}" "${failures}"
    ((failures == 0))
}

main "$@"
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall