Fork Shaka and make it yours
A fork is your own copy of Shaka on GitHub. Use one when you want to change Shaka itself across projects, such as the order of sections in its PR descriptions. For checks, reviewers, or merge choices in one project, use project settings. To try an upstream change on one task, try a Shaka PR.
Fork and install
To create your own fork and install it, ask your coding agent:
Fork https://github.com/shakacode/shaka and install my fork for this coding agent.
Ask me before moving another coding agent's skill link.
Explain how I switch between using my fork and the official version
The agent sets up a branch for your changes and tells you which version your coding agent loads. See manual installation for prerequisites.
Install a fork you already have
Give your coding agent the fork's URL and the branch you want to install. For example:
Install my Shaka fork from https://github.com/OWNER/shaka on branch mine.
Ask me before moving another coding agent's skill link.
Show me which coding agents will switch and how to switch back
Replace OWNER and mine with the fork's GitHub owner and branch. Keep a
separate development clone for edits so the installed copy stays usable.
Before switching, ask the agent to record the current source, branch or release, and commit. Select the official Shaka source or your fork's URL and branch. The installer switches your skill links to a separate checkout and keeps the previous checkout available. If other coding agents use that installation, switching moves their links too. Ask the agent to show which links and startup hooks will be affected. If you asked to switch one coding agent, it should ask before moving any other agent's links. After the switch, have it verify the active links and commit and explain how to switch back.
Install an existing fork from a terminal
Use this for a fresh installation. To replace an existing installation, use the prompt above so your agent can check which links would move and save the current version for rollback.
Set fork_url to your fork's clone URL, fork_branch to the branch you pushed
to GitHub, and shaka_source to a new checkout path.
umask 022
git clone --branch "$fork_branch" "$fork_url" "$shaka_source"
Inspect the cloned source and its installer. When you're ready to use that revision, run this example for Codex. For other agents, see the terminal installation options.
"$shaka_source/bin/install" --directory "$shaka_source" \
--repository "$fork_url" --branch "$fork_branch" --agent codex &&
"$shaka_source/bin/install" --verify
Hack on it
Try a small change with a visible result:
In my Shaka development clone, move Verification above Intent in PR descriptions.
Run the relevant checks and show me a sample description
Ask the agent to run the candidate on a small README task in a practice project without replacing your installation. Include "Do not merge" in that task. Check that the open PR shows Verification above Intent. When the result is right, ask the agent to install the tested version of your fork. See developing Shaka and testing a local candidate. Keep existing settings keys and PR record markers compatible so Shaka can still read older projects and PRs. Follow the repository's rules when changing the workflow.
Set up a development clone from a terminal
Set fork_url to your fork's clone URL, fork_branch to the branch you
installed, and dev_dir to a new directory outside your installed checkout.
git clone --branch "$fork_branch" "$fork_url" "$dev_dir" &&
cd "$dev_dir" &&
git remote add upstream https://github.com/shakacode/shaka.git &&
.agents/shaka/bin/setup &&
.agents/shaka/bin/validate
Run the validation command again after editing. To see the workflow the agent
reads, run skills/shaka/scripts/shaka workflow from the development clone.
Keep your fork current
Inspect the latest official Shaka changes before merging them into my fork.
Keep my customizations, resolve conflicts, and test the result. Publish the
tested commit to my fork's install branch, then install that exact commit.
Ask me before moving another coding agent's skill link
Bring upstream changes into your working branch without rewriting the installed branch's history. The updater needs to move forward from the installed commit. Publish the tested commit to your fork's install branch before installing it. Finish active Shaka chats, install the tested commit, and start a new chat.
Publish the tested update from a terminal
Review the upstream changes in your development clone before merging them.
Switch to your fork's install branch, merge your integration, and run
.agents/shaka/bin/validate. Set tested_commit to the
commit you validated. Check that both git remote get-url origin and
git remote get-url --push origin point to your fork. Use the same
fork_branch as above to publish the tested commit and confirm it is on the
remote branch:
git fetch origin "$fork_branch" && {
if ! git merge-base --is-ancestor "$tested_commit" FETCH_HEAD; then
git push origin "$tested_commit:refs/heads/$fork_branch" &&
git fetch origin "$fork_branch" &&
git merge-base --is-ancestor "$tested_commit" FETCH_HEAD
fi
}
If any command fails, stop before updating the installation. Ask your agent to install that exact commit from the fork.
If the branch was rewritten, the updater leaves the installed copy in place.
From that checkout, confirm origin points to your fork. Run git fetch origin
and compare the two histories with
git log --oneline --left-right HEAD...origin/mine, using your branch name in
place of mine. You can ask your coding agent to help even if Shaka cannot
start. Choose which history to keep before changing either checkout.
Restore updates after rewriting your fork branch
Use this when you want to keep the rewritten files and make the installed
commit part of the branch's history again. In a clean development checkout
on the rewritten branch, set
shaka_source to the path of the installed checkout, then run:
git fetch "$shaka_source" HEAD &&
git merge-base HEAD FETCH_HEAD &&
git merge --no-ff -s ours FETCH_HEAD
If Git finds no common ancestor, stop. The histories are unrelated, and this
recipe cannot restore the installed commit to the branch. When the merge
succeeds, it records the installed commit as an ancestor while keeping the
rewritten branch's files. The next update installs those files. Run
git diff FETCH_HEAD HEAD to see what will change before you push, then
update the installation.
Contribute back
If a change could help other Shaka users, ask your agent to prepare a focused PR:
Prepare an upstream Shaka PR for this one change. Include what I tested and what it showed
Start from the official default branch and leave out your other customizations. See Contributing and AGENTS.md. For a suggestion without code, use the issue tracker.
See Names and logos for use of the Shaka name.
Troubleshooting
The examples below use mine for your fork's branch name.
| What you see | What to do |
|---|---|
Installation origin differs from the expected repository | Pass --repository with the URL you cloned, exactly as git config --get remote.origin.url prints it. |
Installation checkout has uncommitted changes | Move the edit to your working clone, push it to the registered branch, and update the installation. |
The registered branch (origin/mine of ...) was rewritten | mine was rewritten. Compare the histories and choose a recovery path in Keep your fork current. |
Installation checkout is not on the registered branch or Installation branch mine does not follow origin/mine | Run the git command at the end of the message to return to the branch you installed. |