File tree Expand file tree Collapse file tree
pm-market-research/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Apply the **sentiment-analysis** skill:
5151
5252### Overall Sentiment
5353- Positive: [X%] | Neutral: [Y%] | Negative: [Z%]
54- - Average sentiment score: [X/10 ]
54+ - Average sentiment score: [X on a -1 to +1 scale ]
5555- Trend: [improving / stable / declining]
5656
5757### Top Themes
Original file line number Diff line number Diff line change @@ -221,5 +221,22 @@ def test_plugin_readme_command_refs_exist(self):
221221 )
222222
223223
224+ class TestSentimentAnalysisContract (unittest .TestCase ):
225+ def test_command_uses_the_skill_score_scale (self ):
226+ plugin = ROOT / "pm-market-research"
227+ skill = (plugin / "skills" / "sentiment-analysis" / "SKILL.md" ).read_text (
228+ encoding = "utf-8"
229+ )
230+ command = (plugin / "commands" / "analyze-feedback.md" ).read_text (
231+ encoding = "utf-8"
232+ )
233+
234+ self .assertIn ("sentiment scores (-1 to +1)" , skill )
235+ self .assertIn (
236+ "- Average sentiment score: [X on a -1 to +1 scale]" , command
237+ )
238+ self .assertNotIn ("- Average sentiment score: [X/10]" , command )
239+
240+
224241if __name__ == "__main__" :
225242 unittest .main ()
You can’t perform that action at this time.
0 commit comments