Introduction¶
When creating agents or displaying external accounts in DSH, it is often necessary to repeatedly modify nicknames, bios, taglines, and avatars, while checking field lengths and form items across different sites. Manually opening profile pages to copy and paste is slow and prone to missing fields. A common practice is to write the copy locally and upload it yourself; dsh-profile-stylist connects “generating copy based on your needs → validating fields → selecting avatar → writing to the logged-in browser” into a single dry-run capable workflow. Currently, it is only adapted for the profile pages of GitHub and Gitee, both verified on real devices.
What is this¶
dsh-profile-stylist (Profile Configuration) is released by the maintainer 7gzgn. Current version: 0.2.2, License: MIT, Repository: github.com/7gzgn/dsh-profile-stylist. Community Directory Page: skillhub.cn/plugins/7gzgn/dsh-profile-stylist (Independent site, no official affiliation with DeepSeek / High-Flyer).
Plugin Positioning: You describe the persona you want, and the Host Model Service generates writable fields such as nickname, bio, and tagline. Then, it selects or synthesizes an avatar from the asset library, a local path, or an on-page canvas template. Finally, it opens your profile page in the browser, fills in the data, and saves it. If the copy cannot be generated, it will not be fabricated; dry-run is the default, and actual writing only occurs when confirm: true is explicitly passed.
Core Features¶
The following describes what the plugin does, following the steps in the README.
Generation & Convergence¶
- Generate Copy: Based on requirements like
wish, let the host model output nickname, bio, tagline, location, links, etc.; fields that cannot be written are omitted. - Converge Draft: Field whitelisting, truncation based on site length (e.g., GitHub bio 160 characters), URLs restricted to
http/https. - Select Avatar: Asset library, local image path, or on-the-fly synthesis starting from v0.2 (
initials/gradient/tagline); this machine does not have an image generation service, so AI drawing is not provided. - Health Check: Check if the target site supports these fields, if limits are exceeded, and if selectors are verified.
- Write: Requires
confirm: true; opens the profile page, fills in text, submits the avatar to the site JS viaFile → DataTransfer → input.files → change, and clicks save. - Report: Lists what was filled, what was not filled, avatar confirmation status, and warnings.
Three Tools¶
The plugin exposes three tools externally (names and parameters subject to the README):
profile_assets [target=github] # View available images in the asset library
profile_author wish="…" [host=github] [current=…] # Generate draft, do not write to site
profile_apply fields='{"name":"…","bio":"…"}' [host=github] [avatarPath=…|avatarFromAssets=…] [confirm=true]
profile_apply acts as a dry-run if confirm: true is not passed: it only performs health checks and display, without opening pages or clicking buttons.
Avatar Sources¶
| Source | Usage |
|---|---|
| Asset Library | Place png/jpg in %USERPROFILE%\.dsh\dsh-profile-stylist\assets\avatars\, use avatarFromAssets:"filename" |
| Local Image | avatarPath:"D:\\pics\\me.png" (≤12MB, will be normalized to 512×512) |
| On-the-fly Synthesis | avatarTemplate:"initials" | "gradient" | "tagline", 460×460 PNG; tagline can be paired with avatarTagline |
| None Provided | Do not change avatar |
Example (actual writing requires confirm=true):
profile_apply fields='{"name":"Seven Robins","bio":"…"}' avatarTemplate="tagline" avatarTagline="The one who writes plugins" confirm=true
Supported Sites¶
Only supports “Git-style” profile pages: GitHub, Gitee (selectors verified on real devices). Weibo, Zhihu, Bilibili, etc., are not adapted; passing them will result in a direct rejection.
| Field | GitHub | Gitee |
|---|---|---|
| Nickname / Display Name | Supported | Supported |
| One-liner Bio | Supported | Supported |
| Company / Organization | Supported | Supported |
| Link (Homepage) | Supported | Supported |
| Location | Supported | Not Supported (Province/City two-level dropdown, passing location will appear in unsupported) |
Red Lines & Privacy¶
- Only writes profile fields; does not touch passwords, emails, security settings, or payments.
- Only operates on the account currently logged in to the browser; login state is maintained by the browser profile itself.
- Does not hold API keys; copy is generated by the host model.
- Transparency before writing: The dry-run receipt shows the proposed content for each field, which is executed only after confirmation.
Installation & Activation¶
After being listed in the market, search for dsh-profile-stylist in DSH to install. The manual method provided in the README (Windows example, paths need to be adjusted for your machine):
New-Item -ItemType Junction -Path "$env:USERPROFILE\.dsh\profiles\desktop\node_modules\dsh-profile-stylist" -Target "D:\dsh\projects\dsh-profile-stylist"
# In profile's package.json: add "dsh-profile-stylist": "link:D:/dsh/projects/dsh-profile-stylist" to dependencies
# And add "dsh-profile-stylist" to dsh.profile.bundles (it won't load if missed) → Restart DSH
Two steps are recommended before use: ① Install DSH’s built-in browser capabilities; ② Log in to GitHub or Gitee in the browser window.
package.json specifies Node >= 18, compatible with DSH 0.2.0-rc.2 and 0.2.1-rc.2; depends on peer packages like @deepseek-ai/cordis. The plugin runs with the current DSH process permissions; please check the source code and MIT license yourself before installation.
Typical Usage¶
- Use
profile_authorto generate a draft based onwish, without writing to the site. - Use
profile_assetsto view avatars in the local asset library. - Use
profile_applyto perform a dry-run withoutconfirmfirst, to check fields and warnings. - Once satisfied, add
confirm=trueto execute the write.
Smoke test provided by the maintainer (no network, does not touch real browser):
node test/smoke.mjs
The README states that running tests in the live code tree will exit directly; you need to copy it to a location like D:\dsh\sandbox\ before executing.
Scenarios & Notes¶
Suitable for: DSH users who need to unify persona copy and avatars on GitHub / Gitee, and want to simulate before confirming. Not suitable for: Profile page automation on non-mentioned sites.
Must remember the default dry-run, Gitee’s lack of support for location, and “only recognizing verified selectors”—un-adapted sites will be rejected rather than guessing the DOM. The community directory and GitHub repository are the authoritative sources for installation methods and behavior.
Conclusion¶
dsh-profile-stylist condenses “Describing Persona → Generating Writable Fields → Selecting Avatar → Filling Form in Browser” into three tools, controlling risks with dry-run and field whitelists. Directory Page: https://www.skillhub.cn/plugins/7gzgn/dsh-profile-stylist; Source Code & Full Docs: https://github.com/7gzgn/dsh-profile-stylist.