Localdocs til link

From tae0y/python-project-template · View interactive version

Localdocs til link is an AI agent skill from the GitHub repository tae0y/python-project-template. Links a project's localdocs/ folder to the TIL repository via symlink for centralized document management. Use when setting up a new project, after accidentally deleting localdocs/, or when connecting localdocs/ to a TIL repo for git-backed persistence. Triggered by requests like "link localdocs to

How to use this skill

Skill file

localdocs-til-link

Connects a project's localdocs/ to the TIL repo via symlink. Real files live in TIL (git-managed); the project sees localdocs/ as if it were a normal directory.

Prerequisites

Ask the user for the following if not provided as arguments:

Resolve TIL_BASE to an absolute path before use (expand ~ if needed).

Workflow

1. Check current state

ls -la {PROJECT_LOCALDOCS}
ls "{TIL_BASE}/{til_folder}"

2. Merge (when both sides have files)

Copy TIL → localdocs, no overwrite:

rsync -av --ignore-existing "{TIL_BASE}/{til_folder}/" "{PROJECT_LOCALDOCS}/"

For files with differing timestamps, show the diff and ask the user which side is authoritative.

3. Move and create symlink

rm -rf "{TIL_BASE}/{til_folder}"
mv "{PROJECT_LOCALDOCS}" "{TIL_BASE}/{til_folder}"
ln -s "{TIL_BASE}/{til_folder}" "{PROJECT_LOCALDOCS}"

4. Verify

ls -la {PROJECT_LOCALDOCS}         # confirm symlink (look for ->)
ls "{TIL_BASE}/{til_folder}/"      # confirm files are present

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.