修改skill #259

Open
nudt_zk wants to merge 97 commits from zzx-coder/gitlink-cli:zk_branch into master
First-time contributor
No description provided.
nudt_zk added 41 commits 2026-06-15 19:29:27 +08:00
466a7ab181 feat: add wiki +lint command and dry-run support for all write operations
- Add wiki +lint: check empty pages, missing H1, short content, dead links, broken images
- Fix lint to use sub_url for fetching page content instead of title
- Skip system pages (_Sidebar, _Footer, _Header) in lint checks
- Add CHANGELOG.md for wiki module
- Add dry-run support to branch, ci, issue, org, pr, release, repo commands
- Add batch operations for org and repo members
- Add gitlink-wiki skill definition

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
789c32cc64 Add webhook and wiki management features
- Added webhook shortcuts and skill
- Added wiki management shortcuts and skill
- Updated workflow examples and references
- Enhanced skills documentation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5fd2ad0c6d Update webhook functionality and fix authentication issues
- Updated webhook shortcuts with enhanced functionality
- Fixed authentication issues in login.go and auth.go
- Improved repo context resolution
- Added npm package configuration
- Updated binary build

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36b8a912a5 feat: add label/review/milestone/team shortcuts, merge master updates
- issue: add label add/remove/list subcommands, add reopen command
- pr: add approve/request-changes/reviews subcommands
- org: merge update/delete from master, add invite/remove-member
- repo: add update command
- release: add update command, clean up comments
- search: add issues search
- register: add milestone, team, webhook modules

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
d122b95d6c Merge branch 'master' into zk_branch
- resolve conflicts in register.go, release/release.go, repo/repo.go, SKILL.md
- keep milestone/team/webhook registrations from zk_branch
- incorporate batch_create/batch_update from master

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
682dbf8619 feat: add one-line install script, remove Go/npm dependency for end users
- Add install.sh: auto-detect platform, download prebuilt binary, install skills
- Bump npm package to v0.2.0
- Update README (EN/CN) with curl-based one-line install as primary method
- No Go, no npm required for standard installation

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
8f420e5ef2 fix: update RequireArg calls to match new 2-arg signature from master merge
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
3edc27fac9 Update documentation and user functionality
- Updated design documentation with latest features
- Updated API reference documentation
- Enhanced user shortcuts functionality
- Added new gitlink-cli binary

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1e36747b00 Add uninstall functionality and update installation scripts
- Added uninstall scripts for multiple platforms (install/uninstall.sh, .ps1)
- Updated installation documentation with INSTALL.md and UNINSTALL.md
- Enhanced npm package with uninstall and update scripts
- Improved README files with latest changes
- Updated install.sh with better functionality

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0ed9dcabfc Add onboard, compliance, and contrib shortcuts with skill docs
- onboard: new contributor onboarding with --issues/--tag support
- compliance: license audit, secret scan, PII check, sensitive vocab scan
- contrib: contribution report generation
- Update register.go to register all three shortcut groups
- Add skills/gitlink-onboard and skills/gitlink-compliance skill docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
be837d4f8e Improve onboard template: per-issue content-aware welcome comments
- fetchIssueDetail now gets both subject and description
- renderComment substitutes {subject}, {description}, {number}, {login}
- defaultTemplate includes issue summary for targeted guidance
- dry-run preview shows the full rendered comment

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
58c9f77b6b Add --force flag to onboard +welcome for re-adding comments
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
nudt_zk added 1 commit 2026-06-23 15:56:31 +08:00
dc5425690d Add gitlink-code-insight skill: interactive dashboard for all shortcuts
New skill that generates an HTML dashboard showcasing all 69 gitlink-cli
shortcuts organized into 14 categories with search and collapsible UI.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
nudt_zk force-pushed zk_branch from dc5425690d to 93d695d1b3 2026-06-24 09:59:55 +08:00 Compare
nudt_zk added 3 commits 2026-07-01 12:11:14 +08:00
dc5425690d Add gitlink-code-insight skill: interactive dashboard for all shortcuts
New skill that generates an HTML dashboard showcasing all 69 gitlink-cli
shortcuts organized into 14 categories with search and collapsible UI.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
a3c433e697 feat(workflows): add 5 workflow scripts with bug fixes
Add workflow automation scripts for GitLink CLI:
- 01-community-ops: issue triage, weekly reports, release notes
- 02-code-quality-gatekeeper: PR review, quality scoring, auto-merge
- 03-project-init: repo creation, branch protection, wiki setup
- 04-multi-repo-collab: cross-repo dashboard, health monitoring
- 05-contributor-growth: AHP-weighted scoring, HTML reports, wiki publish

Fixes applied during testing:
- common.sh: fix SIGPIPE error in gl_check (use here-string instead of pipe)
- common.sh: add WinGet Links to PATH for jq availability on Windows
- 05-contributor-growth: fix pull_request_number → pull_request_id
- 05-contributor-growth: fix null total_addition/total_deletion (sum from files)
- 05-contributor-growth: fix wiki publish 400 error (use timestamp in title)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
nudt_zk added 1 commit 2026-07-01 23:51:56 +08:00
ecf16b379d feat(workflows): add PowerShell scripts and refactor workflow Skill
- Add 4 PowerShell workflow scripts for cross-platform automation:
  - 01-community-ops.ps1: Issue auto-classify, assign, weekly report, release notes
  - 03-project-init.ps1: One-click project init with README, CONTRIBUTING, CI guide, issues, branch protection, release
  - 04-multi-repo-collab.ps1: Cross-repo dashboard with HTML output and coordinated release
  - 05-contributor-growth.ps1: Contributor scoring (AHP), HTML report, Wiki, badge awards
- Add workflows/lib/common.psm1 shared PowerShell module
- Refactor gitlink-workflow SKILL.md to focus on AI-powered code review (workflow 2)
- Retain original .sh scripts alongside new .ps1 scripts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
nudt_zk added 1 commit 2026-07-01 23:59:05 +08:00
012c197ee6 fix(workflows): make PowerShell scripts compatible with PS 5.1
- Replace ?? operator with if/else for Windows PowerShell 5.1 compatibility
- Remove Chinese characters to avoid encoding issues
- Use string concatenation instead of complex expressions in here-strings
- Update common.psm1 to remove PS 7+ syntax

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
nudt_zk added 1 commit 2026-07-02 16:17:03 +08:00
4f3ae280b7 feat(workflows): add workflow skill system and fix batch commands
- Fix batch-label: use issue_tag_ids instead of tracker_id
- Fix parseTracker: support Chinese label names (缺陷/功能/疑问 etc.)
- Add workflow skill menu (workflows/SKILL.md) with 5 automation options
- Add workflow reference files: community-ops, contributor-growth, multi-repo
- Fix PowerShell scripts: Invoke-GL array syntax, remove ConvertFrom-Json
- Fix wiki +create flag from --body to --content
- Update contributor-growth doc with known issues and field corrections
- Add contributor leaderboard HTML report

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
nudt_zk added 1 commit 2026-07-06 12:13:45 +08:00
a8f8a30953 feat(workflows): add gitlink-research skill and academic workflow scripts
Add 5 research auxiliary scenarios: project insights, compliance check,
progress tracking, citation format, and knowledge graph support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
nudt_zk added 22 commits 2026-07-09 23:40:08 +08:00
3e867d23f8 refactor: improve error handling, output formatting, and wiki/webhook shortcuts
- Add dedicated error_print.go for centralized error output
- Enhance formatter with better table/json/yaml rendering
- Add unit tests for output formatter
- Improve runner with cleaner error propagation
- Update globals and root command configuration
- Refine webhook and wiki shortcut implementations

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
b1bf96141c feat: add repo batch-delete, unify api error envelope, harden wiki handling
- repo: 新增 `+batch-delete` shortcut(--names / --from CSV / --dry-run),
  补齐 batch-create / batch-update / batch-delete 三件套
- api: 新增 `--body-file` 解决 PowerShell 调用 .exe 时剥离内嵌引号的问题;
  JSON 解析、参数冲突、读文件失败、网络错误统一按 envelope 输出,
  便于 --format json + jq 自动化解析
- wiki: unwrapGatewayResponse 接受全部 HTTP 2xx(修复 DELETE 返回 204 被误判失败);
  错误改返回 *clierrors.CLIError 让 envelope 输出生效;fetchPageContent 自动重试
  ".-" 后缀(GitLink 后端给 sub_url 加后缀导致 GET 404);outputWithDecodedContent
  解码 base64 字段为明文提升 agent 可读性;wiki +delete 先解析实际 pageName 再
  DELETE,删除后强制 GET 验证并返回结构化结果

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
4379b16083 feat: add interactive showcase frontend (demo/) for gitlink-cli
新增 GitLink CLI 交互式展示平台,提供 Web UI 一键执行所有 CLI 命令及 AI Agent Skills,
无需记忆命令行参数即可完成功能演示、测试和验证。

- server.py:Python stdlib HTTP 服务 (127.0.0.1:8765),提供 /api/exec(执行 gitlink-cli
  命令)、/api/claude(执行 Claude Code Skills 提示词,支持多轮 session)、/api/cancel
- index.html:原生 JS/HTML/CSS 单文件 SPA(~1260 行),包含:
  - 双引擎切换:PowerShell 模式(8 模块 ~60 条预设命令)和 Claude Code 模式(9 模块 ~22 条
    预设提示词)
  - 双运行模式:Direct Run(点选即执行)和 Edit Mode(填入终端编辑后手动执行)
  - 终端模拟器:命令回显、stdout/stderr 着色、多行编辑、Ctrl+L 清屏
  - 智能链接提取:从输出中自动解析 owner/repo 及 Issue/PR/Webhook/Wiki 编号,生成 GitLink
    网页端可点击链接
  - 可折叠侧边栏 + 拖拽调节宽度 + 执行引擎状态指示

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
19b0e31bf8 feat: 补全 Raw API 封装 — file/milestone/issue增强/pr增强 + 单元测试
新增模块:
- file: 11个命令 (ls/tree/read/readme/search/create/update/delete/batch/commits/diff)
- milestone: 6个命令 (list/create/view/update/delete/status)

Issue增强:
- 元数据查询: +statuses/+authors/+assigners/+priorities
- 评论管理: +comment-edit/+comment-delete/+replies
- 批量删除: +batch-destroy (原生batch_destroy接口)

PR增强:
- +reopen/+update/+commits/+versions/+vdiff/+filesv1
- 评论管理: +comment-edit/+comment-delete

其他:
- 新增 board 看板模块, compliance 合规模块
- 更新 README.md/README.zh-CN.md 帮助文档
- 43个单元测试全部通过

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
nudt_zk added 1 commit 2026-07-10 11:05:50 +08:00
4b2d45baea feat: 修复 milestone +view 输出 + issue/board assign 字段修正 + 文档更新
- 修复 milestone +view 显示 No results 的问题(提取 milestone 字段输出)
- 修正 issue/board 的 assign 字段:assigned_to_id -> assigner_ids
- 添加代码逻辑文档、CLI 优化报告、reading notes
- 添加 board 功能示例和修改笔记
This pull request has changes conflicting with the target branch.
  • README.md
  • README.zh-CN.md
  • cmd/api/api.go
  • cmd/auth/auth.go
  • cmd/cmdutil/globals.go
  • cmd/root.go
  • doc/design.md
  • internal/client/client.go
  • internal/config/config.go
  • internal/output/formatter.go
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b zzx-coder-zk_branch master
git pull zk_branch

Step 2:

Merge the changes and update on Gitea.
git checkout master
git merge --no-ff zzx-coder-zk_branch
git push origin master
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Gitlink/gitlink-cli#259
No description provided.