feat: Add ForgeCode command and agent prompt templates#383
Open
ericnoam wants to merge 8 commits into
Open
Conversation
|
您的邮件我已收到,我会尽快处理。From 何国姣
|
ledutheo
approved these changes
Jun 5, 2026
thejesh23
reviewed
Jun 5, 2026
thejesh23
left a comment
There was a problem hiding this comment.
Symlinked platforms get upstream changes the moment ~/.understand-anything/repo is git pull'd. Copy-per-skill users must re-run the installer to pick up updated skill content. Consider mentioning this in the
"Restart ForgeCode…" message, or have --update re-copy.
…ale copies Symlinked platforms (Claude, Codex, Gemini, etc.) pick up upstream changes automatically because their installed files are symlinks into the repo checkout. ForgeCode uses physical copies (copy-per-skill) to work around directory-symlink discovery issues, so a bare git pull left the installed files stale with no warning. Two fixes (addressing thejesh23's review comment): - install success message now notes that ForgeCode files are copies and instructs users to run --update to refresh them after upstream changes. - cmd_update detects an existing ForgeCode install (~/forge/commands or ~/forge/agents present) and automatically re-copies commands and agents after the git pull, so a single --update keeps everything current. - --help usage line updated to reflect the new --update behaviour.
Author
|
Thanks @thejesh23, good catch! Fixed in 4fc4b61. Two changes in
The |
thejesh23
approved these changes
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add first-class ForgeCode integration by installing ForgeCode-native custom commands and agent prompt templates, plus a dedicated
forgecodeinstaller target.Context
ForgeCode supports custom commands (e.g.
:understand) and custom agents, but it does not reliably discover skills installed as symlinked directories. This change makes the Understand-Anything workflows usable inside ForgeCode without breaking existing installation targets.Changes
forgecodeplatform target.<forge-base>/commands.<forge-base>/agents.FORGE_CONFIG, then~/forge, then~/.forge.:understand,:understand-chat,:understand-explain,:understand-dashboard, plus command templates for other Understand Anything workflows.project-scanner,file-analyzer,assemble-reviewer,architecture-analyzer,tour-builder,graph-reviewer,domain-analyzer.Key Implementation Details
forgecodeplatform in the installers; other platforms continue to use existing install styles.forge list ... --custom.Use Cases
:understand ...:understand-chat ...:understand-explain ...:understand-dashboardTesting
Notes
pwshavailable), but the changes mirror the existing installer patterns.