← 返回 Skills 市场
lancemccarthy

Configure Telerik NuGet

作者 Lance McCarthy · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
107
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install configure-telerik-nuget
功能描述
Helps setup, configure and manage Telerik NuGet feeds in your repo's nuget.config file.
使用说明 (SKILL.md)

\r \r Use these helper functions to manage Telerik NuGet source configuration.\r \r Get a new api key at https://www.telerik.com/account/downloads/api-keys\r \r

Function: configure\r

\r Sets a global user environment variable for the Telerik API key and updates/creates nuget.config so credentials use the environment variable instead of a hardcoded secret.\r \r

function Configure-TelerikNuGetSource {\r
	param(\r
		[Parameter(Mandatory = $true)]\r
		[string]$ApiKey,\r
\r
		[string]$ApiKeyEnvVarName = "TELERIK_NUGET_API_KEY",\r
		[string]$SourceName = "Telerik_NuGet_Server",\r
		[string]$SourceUrl = "https://nuget.telerik.com/v3/index.json",\r
		[string]$NuGetConfigPath = "./nuget.config"\r
	)\r
\r
	# Store API key as a user-level environment variable so it is available globally\r
	[Environment]::SetEnvironmentVariable($ApiKeyEnvVarName, $ApiKey, "User")\r
	$env:$ApiKeyEnvVarName = $ApiKey\r
\r
	if (-not (Test-Path $NuGetConfigPath)) {\r
		@"\r
\x3C?xml version="1.0" encoding="utf-8"?>\r
\x3Cconfiguration>\r
  \x3CpackageSources />\r
  \x3CpackageSourceCredentials />\r
\x3C/configuration>\r
"@ | Set-Content -Path $NuGetConfigPath -Encoding UTF8\r
	}\r
\r
	[xml]$nugetConfig = Get-Content -Path $NuGetConfigPath\r
\r
	if (-not $nugetConfig.configuration.packageSources) {\r
		$packageSourcesNode = $nugetConfig.CreateElement("packageSources")\r
		$nugetConfig.configuration.AppendChild($packageSourcesNode) | Out-Null\r
	}\r
\r
	if (-not $nugetConfig.configuration.packageSourceCredentials) {\r
		$credentialsNode = $nugetConfig.CreateElement("packageSourceCredentials")\r
		$nugetConfig.configuration.AppendChild($credentialsNode) | Out-Null\r
	}\r
\r
	$existingSource = $nugetConfig.configuration.packageSources.add | Where-Object {\r
		$_.key -eq $SourceName\r
	}\r
\r
	if ($existingSource) {\r
		$existingSource.value = $SourceUrl\r
	} else {\r
		$sourceNode = $nugetConfig.CreateElement("add")\r
		$sourceNode.SetAttribute("key", $SourceName)\r
		$sourceNode.SetAttribute("value", $SourceUrl)\r
		$nugetConfig.configuration.packageSources.AppendChild($sourceNode) | Out-Null\r
	}\r
\r
	$existingCredentialNode = $nugetConfig.configuration.packageSourceCredentials.$SourceName\r
\r
	if (-not $existingCredentialNode) {\r
		$existingCredentialNode = $nugetConfig.CreateElement($SourceName)\r
		$nugetConfig.configuration.packageSourceCredentials.AppendChild($existingCredentialNode) | Out-Null\r
	}\r
\r
	$existingCredentialNode.RemoveAll()\r
\r
	$usernameNode = $nugetConfig.CreateElement("add")\r
	$usernameNode.SetAttribute("key", "Username")\r
	$usernameNode.SetAttribute("value", "api-key")\r
	$existingCredentialNode.AppendChild($usernameNode) | Out-Null\r
\r
	$passwordNode = $nugetConfig.CreateElement("add")\r
	$passwordNode.SetAttribute("key", "ClearTextPassword")\r
	$passwordNode.SetAttribute("value", "%$ApiKeyEnvVarName%")\r
	$existingCredentialNode.AppendChild($passwordNode) | Out-Null\r
\r
	$nugetConfig.Save((Resolve-Path $NuGetConfigPath))\r
\r
	Write-Host "Configured Telerik feed '$SourceName' in '$NuGetConfigPath'."\r
	Write-Host "Saved API key in user environment variable '$ApiKeyEnvVarName'."\r
	Write-Host "Restart your terminal/IDE so new processes can read the updated environment variable."\r
}\r
```\r
\r
Example usage:\r
\r
```powershell\r
Configure-TelerikNuGetSource -ApiKey "\x3Ctelerik-api-key>"\r
```\r
\r
## Changelog\r
\r
### 1.1.0 - 2026-03-20\r
\r
- Added skill package metadata: `required_binaries`, `author`, `homepage`, and `source`.\r
- Updated configure function to save API key as a user-level environment variable.\r
- Updated `nuget.config` credential handling to use environment variable expansion instead of hardcoded API key values.\r
- Added `version` field to frontmatter.
安全使用建议
This skill appears to do what it says (add a Telerik NuGet feed and configure credentials), but review a few points before installing/using it: - The SKILL.md expects PowerShell (pwsh) and declares dotnet in its frontmatter, but the registry metadata shows no required binaries — verify pwsh is available and be aware of this metadata mismatch. - The function will persist the provided API key as a user-level environment variable (Environment.SetEnvironmentVariable with scope 'User'). Persisting secrets in environment variables can expose them to other processes and is less secure than using an OS credential manager, encrypted nuget.config, or CI secret storage. Consider alternatives or set the variable only for the current session. - The script writes/overwrites ./nuget.config (or a custom path you supply). Inspect the script and back up your nuget.config before running it. If you decide to proceed: supply the API key only after reviewing the script, or run it in a disposable/test environment first. If you need higher assurance about secret handling, prefer solutions that use credential stores or CI secrets rather than persistent user env vars.
功能分析
Type: OpenClaw Skill Name: configure-telerik-nuget Version: 1.1.0 The skill provides a PowerShell function to configure Telerik NuGet feeds by setting a persistent user-level environment variable for an API key and updating a local `nuget.config` file. The code in `SKILL.md` performs standard XML manipulation and environment configuration that aligns with its stated purpose, with no evidence of data exfiltration, obfuscation, or malicious intent.
能力评估
Purpose & Capability
The SKILL.md defines a PowerShell function that sets a user-level environment variable and edits/creates nuget.config to add a Telerik feed — this is consistent with the skill's described purpose. However the registry metadata earlier lists no required binaries while the SKILL.md frontmatter declares required_binaries: pwsh and dotnet. That metadata mismatch is an inconsistency that could confuse automated checks or users installing the skill.
Instruction Scope
The instructions stay within the stated purpose: they create/update nuget.config and set credentials to use an environment variable rather than a hardcoded secret. The function also sets a user-level environment variable persistently (Environment.SetEnvironmentVariable with 'User'), which is a side-effect users should be explicitly warned about — the SKILL.md does warn to restart the terminal, but does not discuss security trade-offs.
Install Mechanism
This is an instruction-only skill with no install spec or code files, so nothing is downloaded or written by an installer step. That lowers install risk.
Credentials
No credentials are required up-front, which is fine, but the runtime instructions ask the user to provide an API key that the function will store as a persistent user-level environment variable. Persisting secrets in user environment variables can expose them to other user processes and is a broader access surface than storing secrets in a protected credential store or CI secret manager. Also dotnet was declared as required in SKILL.md frontmatter though it isn't used by the script, suggesting over-broad declared requirements.
Persistence & Privilege
The skill will write (or modify) nuget.config in the specified path and write a user-scoped environment variable (which updates the user's environment registry on Windows). This is normal for a configuration helper, but it is a persistent change to the user's environment and filesystem that the user should review before running.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install configure-telerik-nuget
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /configure-telerik-nuget 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
**configure-telerik-nuget 1.1.0** - Added skill metadata: required binaries, author, homepage, and source. - Store Telerik API key as a user-level environment variable for improved security. - Updated nuget.config credentials to reference the environment variable instead of a hardcoded key. - Added version field to the skill metadata frontmatter.
v1.0.0
- Initial release of configure-telerik-nuget. - Adds a PowerShell function to easily add or update Telerik NuGet feed entries in nuget.config. - Supports configuring credentials and handles existing source URLs gracefully. - Documentation and usage instructions included.
元数据
Slug configure-telerik-nuget
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Configure Telerik NuGet 是什么?

Helps setup, configure and manage Telerik NuGet feeds in your repo's nuget.config file. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 107 次。

如何安装 Configure Telerik NuGet?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install configure-telerik-nuget」即可一键安装,无需额外配置。

Configure Telerik NuGet 是免费的吗?

是的,Configure Telerik NuGet 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Configure Telerik NuGet 支持哪些平台?

Configure Telerik NuGet 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Configure Telerik NuGet?

由 Lance McCarthy(@lancemccarthy)开发并维护,当前版本 v1.1.0。

💬 留言讨论