Commit Graph

39 Commits

Author SHA1 Message Date
nudt_zk ea86b2b5a8 Merge pull request 'workflow的skill增加' (#25) from zk_branch into master 2026-07-06 12:15:51 +08:00
Donkey_kevin 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>
2026-07-06 12:14:06 +08:00
Donkey_kevin 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>
2026-07-02 16:17:15 +08:00
nudt_zk b2b0336236 Merge pull request '1' (#24) from zk_branch into master 2026-07-02 15:39:07 +08:00
Donkey_kevin 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>
2026-07-01 23:52:17 +08:00
camelliamc c02cf03a5b feat(faq): 将生成的faq内容组织重构为真正的Q&A知识库 2026-06-29 11:59:53 +08:00
camelliamc 0442e5b80c 同步master分支新增 dashboard 和 code-insight 的skill 2026-06-28 11:20:37 +08:00
camelliamc e5d46d6381 修改生成健康度报告SKILL.md 2026-06-28 10:35:28 +08:00
zkevin 93d695d1b3 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>
2026-06-24 09:59:12 +08:00
camelliamc 2535a313f8 Merge branch 'master' into mc_branch 2026-06-24 00:20:33 +08:00
camelliamc 1d70aadf05 feat(health):项目健康度报告由 markdown 格式改成 HTML 文件 2026-06-24 00:20:02 +08:00
狗gogo de6f94351e feat(skills): add gitlink-stale skill for stale issue/PR detection
Add a new AI Agent skill for detecting and managing stale issues and PRs:

- SKILL.md - main skill guide
- README.md - overview documentation
- examples/ - AI judgment demo, PR stale workflow, weekly cleanup workflow
- references/ - scan, judge, actions, and exempt rules

The skill automates stale detection with AI-powered judgment and supports
weekly cleanup workflows with configurable exemption rules.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 00:03:43 +08:00
狗gogo d17b4f0383 Merge branch 'master' of https://www.gitlink.org.cn/zzx-coder/gitlink-cli 2026-06-23 23:45:38 +08:00
camelliamc 7a30a03836 docs(skills): gitlink-changelog 发行版条目新增作者标注 2026-06-23 22:35:29 +08:00
camelliamc 601e566bac docs(skills): 同步更新 repo/issue/wiki skill 文档,补全新增 shortcut 命令 2026-06-23 21:16:06 +08:00
camelliamc 69a820cccb 新增 gitlink-faq skill — Issue 知识库 2026-06-23 20:32:17 +08:00
狗gogo d804a01e8a Merge branch 'master' of https://www.gitlink.org.cn/zzx-coder/gitlink-cli 2026-06-16 17:02:39 +08:00
zzx-coder 11ab6ba049 Merge pull request '新增skill' (#14) from zk_branch into master 2026-06-16 09:40:44 +08:00
狗gogo 5a590f6850 feat(skills): add gitlink-code-review and gitlink-issue-triage skills
Add two new AI Agent skills for automated GitLink workflows:

- gitlink-code-review: automated PR/code review with quality and security analysis
- gitlink-issue-triage: automated issue classification (tracker/priority/labels)

Each skill includes SKILL.md, README.md, examples, and references.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-16 08:54:56 +08:00
狗gogo 1907e80c34 Merge remote master with local changes: resolve README conflict 2026-06-16 08:50:13 +08:00
Donkey_kevin 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>
2026-06-15 19:11:01 +08:00
camelliamc 6583d09f04 feat(skills): 新增 gitlink-changelog 和 gitlink-health 两个独立skill 2026-06-14 19:41:52 +08:00
zkevin 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>
2026-06-04 11:47:40 +08:00
狗gogo 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>
2026-06-02 10:17:47 +08:00
Donkey_kevin 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>
2026-05-31 17:11:39 +08:00
wbtiger f8d9935b98 docs: remove Gitea reference from branch skill 2026-05-17 12:35:34 +08:00
wbtiger 6ff7384f99 fix(branch): URL-encode branch name in unprotect, add +unprotect to Skill
- shortcuts/branch/branch.go: unprotect 使用 url.PathEscape 编码分支名(含 / 的分支名)
- skills/gitlink-branch/SKILL.md: 新增 +unprotect 命令(参数、示例、Workflow)
- skills/gitlink-branch/examples/branch-workflow.md: 注意事项补 +unprotect 说明
- 注意:含 / 的分支名 unprotect 受限于 Gitea API 路由,需通过 Web 操作
2026-05-17 12:19:04 +08:00
wbtiger a3b710268e feat(skills): add gitlink-branch Skill
- 从 gitlink-repo/references/ 提取 branch 命令,整合为独立 Skill
- 覆盖 branch +list/+create/+delete/+protect 四个命令
- 含 examples/branch-workflow.md 端到端工作流
- 更新 skills/README.md 表格补上 branch +delete
2026-05-17 12:03:34 +08:00
wbtiger 20c3a4ff62 feat(pr): add pr +comment shortcut
Add a convenience command to comment on pull requests directly,
without needing to look up the underlying issue ID first.

Internally resolves the PR's issue ID via pr +view, then posts
to the issues journals API.
2026-05-14 14:23:04 +08:00
wangyue789 b2e840f498 feat(issue): add batch close shortcut with dry-run support 2026-05-13 17:27:50 +08:00
wbtiger b49cf8ffda Merge pull request 'fix: Issue 操作切换到 v1 API,统一使用 project_issues_index 替代数据库 ID' (#11) from wbtiger/gitlink-cli:fix/issue-use-v1-index into master 2026-05-12 17:06:29 +08:00
wbtiger 3e1abd8b8a docs: 补充 Issue status_id 映射表(1=新增, 2=正在解决, 3=已解决, 5=关闭) 2026-05-12 17:05:28 +08:00
wbtiger 44147bd71a fix: Issue 操作切换到 v1 API,统一使用 project_issues_index 替代数据库 ID
改动:
- Issue 所有操作(list/view/create/update/close/comment)从旧版 /api/ 切到 /api/v1/
- flag --id/-i 改为 --number/-n(与网页 URL 中的 Issue 编号一致)
- create 增加 status_id:1(必填,v1 API 要求)
- update/close 的 HTTP 方法从 PUT 改为 PATCH(v1 API 规范)
- comment 的请求字段从 content 改为 notes(v1 API 字段名)
- comment 路径从 /issues/{id}/journals 改为 /v1/{owner}/{repo}/issues/{number}/journals

Fixes #9
2026-05-12 16:55:23 +08:00
wbtiger 17abc488a8 fix: 统一使用 pull_request_number 替代 pull_request_id
将所有 skill 文档中对 pull_request_id 的引用替换为 pull_request_number,
与用户在网页 URL (/pulls/N) 中看到的序号一致。API 本身支持
pull_request_number,因此无需任何代码改动。

Fixes #7
2026-05-12 14:07:20 +08:00
Zhang Jinnan 46aa383d76 fix: preserve issue description on updates 2026-04-28 08:43:51 +08:00
wbtiger 2aad9a00d4 fix: require Fork even for admin/owner, unless user explicitly says otherwise 2026-04-18 17:07:32 +08:00
wbtiger 445e548f49 docs(skills): add Fork-based PR workflow guidelines
- gitlink-shared: add 'PR Collaboration Workflow' section with Fork flow,
  correct/incorrect examples, and self-owned repo exception
- gitlink-pr: replace single-path PR creation with two sections:
  1. Fork flow for contributing to others' repos (mandatory)
  2. Direct branch flow for self-owned repos (allowed)

Ensures AI agents follow standard open-source collaboration practices
instead of pushing branches directly to upstream repositories.
2026-04-18 16:56:55 +08:00
wbtiger 90dee6eeb5 fix(skills): add tool boundary rules to prevent gh/hub misuse on GitLink
Problem:
AI agents (e.g., Claude Code) sometimes use `gh` (GitHub CLI) instead of
`gitlink-cli` when operating on GitLink repositories, causing 'command not
found' errors or targeting the wrong platform.

Solution:
- Add ' Tool Boundary' section to gitlink-shared/SKILL.md with platform-
  to-tool mapping table, judgment criteria, and dual-platform guidance
- Add CRITICAL one-liner to all 10 sub-skills ensuring agents see the
  constraint even without reading shared
- Does NOT block `gh` for GitHub operations — only prevents misuse on
  GitLink resources

Tested with 5 scenarios confirming:
1. GitLink operations correctly use gitlink-cli
2. GitHub operations still use gh when appropriate
3. Ambiguous cases default to gitlink-cli when skill is loaded
2026-04-18 16:14:20 +08:00
wbtiger e892370de8 init gitlink-cli 2026-04-17 10:01:30 +08:00